pip install virtualenv
速度慢的同学可以使用清华园镜像安装:
pip install virtualenv -i https://pypi.python.org/simple/
这里以桌面为路径进行创建
virtualenv env
这样在桌面就会多出env为文件名的文件夹,这个即是虚拟环境文件夹。
这时在命令行中会多出(env)字样,表示当前虚拟环境已激活。
点击文件——>新建项目,根据提示即可自主创建虚拟环境。
不继承全局站点包将意味着当前虚拟环境是“最干净的”,没有任何的第三方库,仅含有标准库。