经常在路径中有空格,就会出现错误,比如以下:

conda create --prefix=D:\Program Files (x86)\python\Python36-32 python=3.6

在conda进行指定python环境时,由于Program Files (x86)含有空格,会出现以下错误:

PackagesNotFoundError: The following packages are not available from current channels:

  - \python\python36-32
  - files

Current channels:

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

但是去掉空格就可以正常创建,所以时空格原因,这里的处理办法是:给路径加上双引号。如下:

conda create --prefix="D:\Program Files (x86)\python\Python36-32" python=3.6

这时候就可以顺利执行了。

 

PackagesNotFoundError: The following packages are not available from current channels:
  - \python\python36-32  - files
Current channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
To search for alternate channels that may provide the conda package you'relooking for, navigate to
    https://anaconda.org
and use the search bar at the top of the page.

相关文章:

  • 2021-10-28
  • 2021-12-07
  • 2022-02-13
  • 2021-09-13
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2022-01-06
  • 2022-03-08
  • 2018-12-04
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案