2017年11月8日 星期三

[Python] Install virtualenv package

Method 1:
Create virtual environment under python3
python3 -m venv virtualenv (virtualenv = folder name)

Start to use virtual environment
source virtualenv/bin/activate

Method 2:
pip install virtualenv

This creates a directory called virtualenv

virtualenv --distribute virtualenv

Activate the environment variable settings:
source virtualenv/bin/activate

Reference:

0 意見:

張貼留言