python virtual env

$ sudo apt-get install python-pip python-dev python-virtualenv

$ cd /

$ sudo mkdir vir_env

$ sudo chmod -R 777 /vir_env

$ cd /vir_env

$ virtualenv --system-site-packages my_vir

$ source /vir_env/my_vir/bin/activate

$ pip install --upgrade pip

$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxxx

$ pip install --upgrade tensorflow_gpu-1.0.0-cp27-none-linux_x86_64.whl



你可能感兴趣的:(python virtual env)