Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does easy_install install things?

Tags:

I want to install sphinx, and the website says to use:

easy_install -U Sphinx

What will happen when I install this command? will I get the source also? Where will it install?

like image 269
Blankman Avatar asked Feb 07 '11 00:02

Blankman


People also ask

What does easy_install do?

Distributes Python programs and libraries (based on the Python Eggs wrapper) It's a python module (easy_install) that is bundled with setuptools. It lets you automatically download, build, install, and manage Python packages.

Is easy_install deprecated?

easy_install, now deprecated, was released in 2004 as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies.

How do I install .EGG files?

Also, the egg file is just a zip, so you could unzip it and then use python setup.py install . unzip setuptools-0.6c11-py2. 7.

Does python install PIP?

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments.


2 Answers

On Ubuntu I believe it installs to /usr/local/lib/python2.6/dist-packages/ and I believe it install the egg for it. -U denotes upgrading it if its already installed

like image 150
ciferkey Avatar answered Jan 17 '23 06:01

ciferkey


/usr/lib/pythonx.y/site-packages

pythonx.y is your version of python. It could be python2.4, python2.7, python3.1, etc.

If you have multiple versions of python on your system, you would easy_install-x.y to install packages for your non-default python. Again x.y is your version of python. You'd use this if you wanted to mess with Python 3, but your system default is 2.7.

like image 42
jonescb Avatar answered Jan 17 '23 06:01

jonescb