python常用指令

来源:互联网 发布:怎么申请阿里云学生机 编辑:程序博客网 时间:2024/06/05 09:37

Virtualenv installation

Ubuntu/Linux 64-bit下:

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

~/tensorflow 创建一个虚拟环境:

$ virtualenv --system-site-packages ~/tensorflow

激活/解除环境:

$ source ~/tensorflow/bin/activate  # If using bash.$ source ~/tensorflow/bin/activate.csh  # If using csh.(tensorflow)$  # Your prompt should change.# Run Python programs that use TensorFlow....# When you are done using TensorFlow, deactivate the environment.(tensorflow)$ deactivate