I created it because I stumbled many times when creating a virtual environment for Python.
You need to install virtualenv, so install it.
$ pip install virtualenv
$ virtualenv <DIR>
$ source <DIR>/bin/activate
When the virtual environment starts, the virtual environment name is displayed in parentheses on the left side of the prompt as shown below.
(<DIR>) XXX:YYY UserName$
$ deactivate
When the virtual environment is closed, the virtual environment name on the left side of the prompt disappears as shown below.
XXX:YYY UserName$
Recommended Posts