我正在为一台计算机编写一些python脚本,由于各种原因,它停留在pythonv2.7.5(升级不是一个选项)上。
我想在我的桌面上设置一个conda环境,以便在将脚本传输到生产机器之前对其进行测试。
$ conda create --name py275 python=2.7.5
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- python=2.7.5
Current channels:
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/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 search python时,可用的最旧版本是2.7.13,但是如果我去anaconda.org进行搜索,files for python 2.7.5就在那里,它们似乎在主通道中。
我怎样才能让conda指向这些文件来创建合适的环境呢?
发布于 2019-07-12 08:46:05
经过长时间的努力寻找答案后,我发现它在这里张贴。Python位于anaconda通道,而不是main通道。
$ conda create --name py275 -c anaconda python=2.7.5https://stackoverflow.com/questions/56998890
复制相似问题