virtualenv

Install virtualenv on Ubuntu
Creating and using 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

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
Need help with Linux Server or WordPress? We can help!

Leave a Reply

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