Python 蟒蛇中的 3.2
Python 3.2 in anaconda
我正在尝试使用 Python3.2 创建一个 anaconda 环境,但 anaconda 似乎只支持 3.4+。
是否可以在 anaconda 环境中使用 Python3.2?怎么样?
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+:
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 信息:
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
Anaconda 发行版 does not include support for Python 3.2:
Anaconda supports Python 2.7, 3.4, 3.5 and 3.6.
我不认为这意味着这是不可能的,只是没有人构建了安装此版本所需的所有 conda 软件包。有一个 discussion on the Anaconda group 关于让 Python 3.2 工作,但它已经有几年的历史了,并没有得出一个通用的解决方案。
您可以尝试再次询问,但我认为您的选择是让您的代码在 3.4 或更高版本中工作,或者寻找其他方式来实现。
我正在尝试使用 Python3.2 创建一个 anaconda 环境,但 anaconda 似乎只支持 3.4+。 是否可以在 anaconda 环境中使用 Python3.2?怎么样?
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+:
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 信息:
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
Anaconda 发行版 does not include support for Python 3.2:
Anaconda supports Python 2.7, 3.4, 3.5 and 3.6.
我不认为这意味着这是不可能的,只是没有人构建了安装此版本所需的所有 conda 软件包。有一个 discussion on the Anaconda group 关于让 Python 3.2 工作,但它已经有几年的历史了,并没有得出一个通用的解决方案。
您可以尝试再次询问,但我认为您的选择是让您的代码在 3.4 或更高版本中工作,或者寻找其他方式来实现。