1

When I create a new virtualenv using python3.5, it creates the virtualenv using Python 3.5.2 as expected, but is missing 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:~$

What is going on? Shouldn't there be a pip binary?

jpmelos
  • 3,283
  • 3
  • 23
  • 30

1 Answers1

1

Remove .pydistutils.cfg file in your home directory.

rm ~/.pydistutils.cfg

This is nicely explained in this.

Community
  • 1
  • 1
Marlon Abeykoon
  • 11,927
  • 4
  • 54
  • 75
  • 1
    It's not there, but I remember experimenting with this a few days ago to see how it worked, so maybe I screwed things up somehow and didn't know. I'll read your link and try to figure it out, thanks! – jpmelos Apr 15 '17 at 14:37