【发布时间】:2019-07-12 00:35:48
【问题描述】:
我正在为一台计算机编写一些 python 脚本,由于各种原因,它卡在 python v2.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 指向这些文件以允许我创建适当的环境?
【问题讨论】:
标签: python-2.7 conda