创建沙盒步骤之简版:
1 安装沙盒------
Pip install virtualenv
2建沙盒 沙盒名字 指定路径
Virtualenv mooc d:/python_venv
3 进入沙盒
Cd edu_show
4 进入 Scripts
Cd Scripts
5 启动沙盒
Activate
安装第三方库:(建议使用清华源)
临时使用清华源:-i https://pypi.tuna.tsinghua.edu.cn/simple
Pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple
安装workon:使用workon创建沙盒环境
Pip install virtualenvwrapper-win
1创建沙盒 (也可指定路径)
mkvirtualenv mooc
2 进入沙盒
Workon mooc

本文介绍如何使用virtualenv和virtualenvwrapper-win搭建Python沙盒环境,包括安装虚拟环境、创建和激活沙盒的过程,并推荐使用清华源来加速第三方库的安装。
757

被折叠的 条评论
为什么被折叠?



