Chenyang Yan
2018-06-22 05:35:37 UTC
I find a wired issue suddenly, when I install pytorch, conda selects Python
3 version pytorch, not Python 2:
(base) [***@21801 5.0.0]# conda install pytorch
... ...
The following NEW packages will be INSTALLED:
cudatoolkit: 9.0-h13b8566_0
cudnn: 7.1.2-cuda9.0_0
nccl: 1.3.5-cuda9.0_0
ninja: 1.8.2-py36h6bb024c_1
numpy-base: 1.14.5-py36hdbf6ddf_0
pytorch: 0.4.0-py36hdf912b8_0
The following packages will be UPDATED:
certifi: 2018.1.18-py27_intel_0 <unknown> [intel] -->
2018.4.16-py36_0
mkl_random: 1.0.1-np114py27_intel_0 <unknown> [intel] -->
1.0.1-py36h629b387_0
numpy: 1.14.3-py27_intel_0 <unknown> [intel] -->
1.14.5-py36hcd700cb_0
pip: 10.0.1-py27_0 <unknown> --> 10.0.1-py36_0
pycparser: 2.18-py27_intel_0 <unknown> [intel] -->
2.18-py36hf9f622e_1
python: 2.7.14-50078513fcfa8 <unknown> [debug] -->
3.6.5-hc3d631a_2
readline: 7.0-hac23ff0_3 <unknown> --> 7.0-ha6073c6_4
setuptools: 39.1.0-py27_0 <unknown> --> 39.2.0-py36_0
sqlite: 3.23.1-intel_0 <unknown> [intel] -->
3.24.0-h84994c4_0
tk: 8.6.4-intel_26 <unknown> [intel] -->
8.6.7-hc745277_3
wheel: 0.31.0-py27_intel_0 <unknown> [intel] -->
0.31.1-py36_0
xz: 5.2.3-intel_0 <unknown> [intel] -->
5.2.4-h14c3975_4
... ...
But conda's Python version is 2.7:
(base) [***@21801 5.0.0]# /root/222/bin/conda info
active environment : base
active env location : /root/222
shell level : 1
user config file : /root/.condarc
populated config files :
conda version : 4.5.4
conda-build version : 3.9.2
python version : 2.7.14.final.0
base environment : /root/222 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /root/222/pkgs
/root/.conda/pkgs
envs directories : /root/222/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/4.5.4 requests/2.18.4 CPython/2.7.14
Linux/3.10.0-693.el7.x86_64 centos/7 glibc/2.17
UID:GID : 0:0
netrc file : None
offline mode : False
I use CentOS 7.4.1708 Docker image as OS, relevant info are below following:
* Docker :17.09.0-ce
* CentOS image: https://hub.docker.com/_/centos/
What happened ? Thanks in advance .
3 version pytorch, not Python 2:
(base) [***@21801 5.0.0]# conda install pytorch
... ...
The following NEW packages will be INSTALLED:
cudatoolkit: 9.0-h13b8566_0
cudnn: 7.1.2-cuda9.0_0
nccl: 1.3.5-cuda9.0_0
ninja: 1.8.2-py36h6bb024c_1
numpy-base: 1.14.5-py36hdbf6ddf_0
pytorch: 0.4.0-py36hdf912b8_0
The following packages will be UPDATED:
certifi: 2018.1.18-py27_intel_0 <unknown> [intel] -->
2018.4.16-py36_0
mkl_random: 1.0.1-np114py27_intel_0 <unknown> [intel] -->
1.0.1-py36h629b387_0
numpy: 1.14.3-py27_intel_0 <unknown> [intel] -->
1.14.5-py36hcd700cb_0
pip: 10.0.1-py27_0 <unknown> --> 10.0.1-py36_0
pycparser: 2.18-py27_intel_0 <unknown> [intel] -->
2.18-py36hf9f622e_1
python: 2.7.14-50078513fcfa8 <unknown> [debug] -->
3.6.5-hc3d631a_2
readline: 7.0-hac23ff0_3 <unknown> --> 7.0-ha6073c6_4
setuptools: 39.1.0-py27_0 <unknown> --> 39.2.0-py36_0
sqlite: 3.23.1-intel_0 <unknown> [intel] -->
3.24.0-h84994c4_0
tk: 8.6.4-intel_26 <unknown> [intel] -->
8.6.7-hc745277_3
wheel: 0.31.0-py27_intel_0 <unknown> [intel] -->
0.31.1-py36_0
xz: 5.2.3-intel_0 <unknown> [intel] -->
5.2.4-h14c3975_4
... ...
But conda's Python version is 2.7:
(base) [***@21801 5.0.0]# /root/222/bin/conda info
active environment : base
active env location : /root/222
shell level : 1
user config file : /root/.condarc
populated config files :
conda version : 4.5.4
conda-build version : 3.9.2
python version : 2.7.14.final.0
base environment : /root/222 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /root/222/pkgs
/root/.conda/pkgs
envs directories : /root/222/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/4.5.4 requests/2.18.4 CPython/2.7.14
Linux/3.10.0-693.el7.x86_64 centos/7 glibc/2.17
UID:GID : 0:0
netrc file : None
offline mode : False
I use CentOS 7.4.1708 Docker image as OS, relevant info are below following:
* Docker :17.09.0-ce
* CentOS image: https://hub.docker.com/_/centos/
What happened ? Thanks in advance .
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/f554e63c-44e0-403d-bf62-f85f85131916%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/f554e63c-44e0-403d-bf62-f85f85131916%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.