Anaconda中的Python 3.2 [英] Python 3.2 in anaconda
问题描述
我正在尝试使用Python3.2创建anaconda环境,但似乎anaconda仅支持3.4+.是否可以在anaconda环境中使用Python3.2?怎么样?
I'm trying to create an anaconda environment with Python3.2 but it seems that anaconda only supports 3.4+. Is it possible to use Python3.2 with anaconda environment? How?
okuoub@iMac>> conda create -n myenv python=3.2
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.2
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/osx-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/osx-64
- https://repo.anaconda.com/pkgs/pro/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搜索时,我只能得到2.7-和3.3 +:
When running conda search I get only 2.7- and 3.3+:
okuoub@iMac>> conda search python
...
python 2.7.14 hd74e306_15 pkgs/main
python 2.7.14 hde5916a_29 pkgs/main
python 2.7.14 he768d2d_19 pkgs/main
python 2.7.14 hed931fe_16 pkgs/main
python 3.3.0 3 pkgs/free
python 3.3.0 4 pkgs/free
python 3.3.1 0 pkgs/free
...
运行conda信息时:
When running conda info:
okuoub@iMac>> conda info
active environment : None
user config file : /Users/okuoub/.condarc
populated config files :
conda version : 4.5.1
conda-build version : 3.0.27
python version : 3.6.3.final.0
base environment : /Users/okuoub/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/osx-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /Users/okuoub/anaconda3/pkgs
/Users/okuoub/.conda/pkgs
envs directories : /Users/okuoub/anaconda3/envs
/Users/okuoub/.conda/envs
platform : osx-64
user-agent : conda/4.5.1 requests/2.18.4 CPython/3.6.3 Darwin/14.5.0 OSX/10.10.5
UID:GID : 501:20
netrc file : None
offline mode : False
推荐答案
The Anaconda distribution does not include support for Python 3.2:
Anaconda支持Python 2.7、3.4、3.5和3.6.
Anaconda supports Python 2.7, 3.4, 3.5 and 3.6.
我不认为这意味着这是不可能的,只是没有人构建了安装此版本所需的所有conda软件包.关于Anaconda组的讨论使Python 3.2能够正常工作,但是它已经使用了几年了,而且还没有一个通用的解决方案.
I don't think this means it's impossible, just that nobody has built all the conda packages you would need to install this version. There's a discussion on the Anaconda group about getting Python 3.2 to work but it's a few years old and doesn't conclude with a general solution.
您可以尝试再次询问那里,但是否则,我认为您的选择是使代码在3.4或更高版本中运行,或者寻找其他实现此目的的方法.
You could try asking there again, but otherwise I think your options are to get your code to work in 3.4 or later, or to look for some other way of doing this.
这篇关于Anaconda中的Python 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!