Operating environment
Xeon E5-2620 v4 (8 cores) x 2
32GB RAM
CentOS 6.8 (64bit)
openmpi-1.8.x86_64 and its-devel
mpich.x86_64 3.1-5.el6 and its-devel
gcc version 4.4.7 (And gfortran)
NCAR Command Language Version 6.3.0
WRF v3.7.Use 1.
Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
Try introducing the Python3 environment with virtualenv.
Reference http://qiita.com/a_yasui/items/5f453297855791ed648d
Not implemented for Python 2 series.
For Python 3.6.0, implement items other than "Install Easy_install".
I created it because the / opt / local
directory did not exist.
The usage after introduction is carried out below.
$ cd
$ /opt/local/bin/virtualenv venv_py360
Where venv_py360 means virtualenv in Python 3.6.0 (arbitrary string).
$ source venv_py360/bin/activate
Start using at.
$ deactivate
Stopped use at.
Originally Python 2.6.6 is included in CentOS 6.8, and you can use it by deactivating it.
Now you should be able to use both Python 2 and Python 3.
There is also a virtualenvwrapper, but I think it's okay to use it after it's needed.
I haven't confirmed if it's okay to put both Python 2 and Python 3 in / opt / local / bin. Will the latter overwrite / opt / local / bin / virtualenv when pip install virtualenv was Python 2 and Python 3?
It seems that the virtualenv environment created by mistake can be deleted with rm -rf (in the environment without the rmvirtualenv command). http://stackoverflow.com/questions/11005457/how-do-i-remove-delete-a-virtualenv
Simply remove the virtual environment from the system.There's no special command for it
rm -rf venv
Install something to use such as numpy. pip install fails (No module is displayed). The following is done with virtualenv activated.
$ easy_install numpy
(Omission)
Adding numpy 1.12.1rc1 to easy-install.pth file
Installing f2py3.6 script to /home/[user]/venv_py360/bin
Installed /home/[user]/venv_py360/lib/python3.6/site-packages/numpy-1.12.1rc1-py3.6-linux-x86_64.egg
Processing dependencies for numpy
Finished processing dependencies for numpy
Recommended Posts