virtualenv

virtualenv is used to create isolated python environments.

With python3, you can create virtualenv with command

python -m venv FOLDER_NAME

Install virtualenv with setuptools

Advertisement

easy_install virtualenv

Create a folder

mkdir /root/virt_env/

Create virtualenv

virtualenv -p /usr/python3/bin/python3.3 /root/virt_env/virt1  --no-site-packages

Activate virtualenv

source /root/virt_env/virt1/bin/activate

To exit a virtualenv, run

deactivate
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement