python2
C:\Users\Administrator\Desktop>virtualenv -p D:\Python27\python.exe testdir
#virtualenv -p python.exe所在文件夹路径 想要建立文件夹路径
Running virtualenv with interpreter D:\Python27\python.exe
New python executable in testdir\Scripts\python.exe
Installing setuptools, pip, wheel...done.
python3
C:\Users\Administrator\Desktop>virtualenv -p D:\Python27\python.exe testdir
#virtualenv -p python.exe所在文件夹路径 想要建立文件夹路径
Running virtualenv with interpreter D:\Python\python3.exe
New python executable in testdir\Scripts\python.exe
Installing setuptools, pip, wheel...done.
本文介绍如何使用virtualenv命令创建Python虚拟环境,包括Python 2和Python 3版本的设置过程。通过指定Python解释器路径来创建虚拟环境,并安装setuptools、pip及wheel等常用工具。
2136

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



