当我使用python3.5
创建新的virtualenv时,它会按预期使用Python 3.5.2
创建virtualenv,但缺少pip
:
jpmelos@jpmelos-laptop:~$ pi<TAB COMPLETION>
pi1toppm pilconvert pinentry ping6
pi3topbm pildriver pinentry-curses pinky
pic pilfile pinentry-gnome3 pip3.6
piconv pilfont pinentry-x11 pivot_root
pidof pilprint ping pixeltool
jpmelos@jpmelos-laptop:~$ python3.5 -m venv myvenv
jpmelos@jpmelos-laptop:~$ source myvenv/bin/activate
(myvenv) jpmelos@jpmelos-laptop:~$ pi<TAB COMPLETION>
pi1toppm pilconvert pinentry ping6
pi3topbm pildriver pinentry-curses pinky
pic pilfile pinentry-gnome3 pip3.6
piconv pilfont pinentry-x11 pivot_root
pidof pilprint ping pixeltool
(myvenv) jpmelos@jpmelos-laptop:~$ python
Python 3.5.2 (default, Dec 28 2016, 10:08:00)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
(myvenv) jpmelos@jpmelos-laptop:~$
发生了什么事?不应该有pip
二进制文件吗?