2017-03-17 CentOS 6.8> Python 3.6.0 introduced / started / stopped in virutalenv

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

Addendum> Install numpy

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

2017-03-17 CentOS 6.8> Python 3.6.0 introduced / started / stopped in virutalenv
Disable python2.6 ssl3 protocol in centos6
Get started with Python in Blender
started python
Get Started with TopCoder in Python (2020 Edition)
Introduced sip-4.14 in python3.2.2 environment with MacOS 10.7.4
Python in optimization
CURL in python
Metaprogramming in Python
Python 3.3 in Anaconda
Geocoding in python
Meta-analysis in Python
Python2.7 + CentOS7 + OpenCV3
Unittest in python
I started python
Epoch in Python
Discord in Python
Sudoku in Python
DCI in Python
quicksort in python
nCr in python
N-Gram in Python
Programming in python
Plink in Python
Constant in python
Lifegame in Python.
FizzBuzz in Python
Sqlite in python
StepAIC in Python
N-gram in python
LINE-Bot [0] in Python
Csv in python
Disassemble in Python
Getting started with AWS IoT easily in Python
Reflection in Python
Constant in python
nCr in Python.
format in python
Scons in Python3
Puyo Puyo in python
python in virtualenv
PPAP in Python
Quad-tree in Python
Reflection in Python
Chemistry in Python
Hashable in python
DirectLiNGAM in Python
CentOS8 --Install --Python3
LiNGAM in Python
Flatten in python
flatten in python
Settings for getting started with MongoDB in python
Output the time from the time the program was started in python
Super Primer to python-Getting started with python3.5 in 3 minutes
Put matplotlib in Centos7.
Daily AtCoder # 36 in Python
Clustering text in Python
Implement Enigma in python
Daily AtCoder # 32 in Python
Django 1.11 started with Python3.6
Daily AtCoder # 6 in Python