Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip install virtualenv
Requirement already satisfied: virtualenv in c:\python27\lib\site-packages (16.7.8)
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip install virtualenv
Requirement already satisfied: virtualenv in c:\python27\lib\site-packages (16.7.8)
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip list
Package Version
———- ——-
pip 18.1
setuptools 40.6.2
virtualenv 16.7.8
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m virtualenv venv-2.7
New python executable in C:\Users\TWZ\Desktop\venv-2.7\Scripts\python.exe
Installing setuptools, pip, wheel…
done.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip install virtualenv
Requirement already satisfied: virtualenv in c:\python27\lib\site-packages (16.7.8)
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip install virtualenv
Requirement already satisfied: virtualenv in c:\python27\lib\site-packages (16.7.8)
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m pip list
Package Version
———- ——-
pip 18.1
setuptools 40.6.2
virtualenv 16.7.8
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ py -2.7 -m virtualenv venv-2.7
New python executable in C:\Users\TWZ\Desktop\venv-2.7\Scripts\python.exe
Installing setuptools, pip, wheel…
done.
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ ll
total 3
-rw-r–r– 1 Administrator 197121 25 12月 14 15:42 1+2.py.txt
-rw-r–r– 1 Administrator 197121 282 12月 14 09:49 desktop.ini
drwxr-xr-x 1 Administrator 197121 0 12月 14 17:08 venv-2.7/
drwxr-xr-x 1 Administrator 197121 0 12月 14 11:44 venv-3.8/
-rw-r–r– 1 Administrator 197121 208 12月 10 13:42 有道云笔记网页剪报.url
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop
$ cd venv-2.7
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop/venv-2.7
$ cd Scripts
Administrator@LAPTOP-2J6LOCT0 MINGW64 ~/Desktop/venv-2.7/Scripts
$ python
到这里python不执行,一直这样,没找到原因,哪里出错了吗?
最后用winpty python
虚拟空间,在git bash下用source activate进入,cmd下用activate.bat进入,然后再用winpty python