python2和python3下使用virtualenv

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.

猜你喜欢

转载自blog.csdn.net/geekleee/article/details/78035794
今日推荐