The Python Oracle

installing modules in python - pip, distribute, nose, virtualenv

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Life in a Drop

--

Chapters
00:00 Question
01:49 Accepted answer (Score 4)
02:11 Answer 2 (Score 2)
02:26 Answer 3 (Score 1)
03:02 Thank you

--

Full question
https://stackoverflow.com/questions/2100...

Question links:
[What's the proper way to install pip, virtualenv, and distribute for Python?]: https://stackoverflow.com/questions/4324...
http://learnpythonthehardway.org/book/ex...

Answer 2 links:
[Python Development Environment on Mac OS X Mavericks 10.9]: http://hackercodex.com/guide/python-deve.../
[here]: https://stackoverflow.com/questions/2095...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #module #virtualenv #pip #distribute

#avk47



ACCEPTED ANSWER

Score 4


To solve your issue,

Just install (or upgrade) the setuptools:

sudo easy_install -U setuptools

Then you can run again: pip install virtualenv




ANSWER 2

Score 2


Try adding 'sudo' in your command as-

sudo pip install virtualenv

It worked for me.




ANSWER 3

Score 1


Have a look at Python Development Environment on Mac OS X Mavericks 10.9.

I followed these steps as well when trying to get Python 2.7 and Python 3.3 installed on OS X. It doesn't tell you how to install nose and distribute, but you should have a working environment and you can pick up from there.

I did have a problem using virtualenv and pip with Python 3, the question and solutions is available here.