Win10+Python+virtualenv 环境配置

安装virtualenv,创建python虚拟环境。

1) 安装virtualenv : pip install virtualenv     //virtualenv –version 检查是否正确安装。
2) 创建python 虚拟环境:virtualenv venv //cd到你想要去到的文件目录下,环境名字依赖你的爱好。
3) 启动虚拟环境: activate  //cd到虚拟环境目录中folder scripts下执行
4) 退出虚拟环境:deactivate  //cd到虚拟环境目录中folder scripts下执行。
 
当然也可以根据需要指定python的版本,执行命令: virtualenv venv –python=python3.4.0 (前提是你的机器上安装了python3.4.0)

猜你喜欢

转载自www.cnblogs.com/cou1d/p/12397893.html
今日推荐