Shows how to use virtualenv, a Python package.
It is used to set up a Python virtual environment under a specific directory. This makes it possible to manage the versions of Python interpreters, packages, etc. individually for each project.
Get virtualenv
$ sudo pip install virtualenv
Version confirmation
$ virtualenv --version
Build a virtual environment under the directory
$ virtualenv <dir_name>
Enable virtual environment
$ . <dir_name>/bin/activate
Disable virtual environment
(dir_name)$ deactivate
When erasing the virtual environment, it is OK to erase all directories
$ rm -rf <dir_name>
Recommended Posts