3

Apparently pyvenv-3.4 is not working correctly in ubuntu 14.10. So I need to grab the ensurepip module and drop it into the lib folder? And my googling skills seem to be busted, because I have not been able to find the source code.

I am getting running pyvenv-3.4 $(pwd)/test:

Error: Command '['/home/bob/Desktop/test/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

See:

Related:

Or is it recommended to use virtualenv as suggested in the second related link?

Community
  • 1
  • 1
jmunsch
  • 22,771
  • 11
  • 93
  • 114

1 Answers1

6

Found it:

https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz

Extract it and copy ensurepip to /usr/lib/python3.4

jmunsch
  • 22,771
  • 11
  • 93
  • 114
  • Thanks for posting your solution, it helped me out. – Brandon Nadeau Jun 14 '15 at 18:37
  • 2
    @Crispy It looks like it may have backported See: https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847/comments/72 ... so `sudo apt-get install python3-venv` may also work now? Also no problem. Glad it helped :) – jmunsch Jun 14 '15 at 22:19
  • This worked for me but using Python 3.5's link: https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz. I used `tar xzf` on the folder, then `cd` into `Lib` and then ran `copy -R ensurepip /usr/lib/python3.5` – Alex Petralia May 26 '16 at 19:54