Recently I started working with Python, I didn’t even come close before. Met easy_install, virtualenv, pip, buildout, setuptools, distribute, distutils and other pokemon. Frankly, the approximate purpose of the above systems for working with packages I understand, but very vague. There are so many of them and they are all different, about 100 heads spin.

I ask you to explain their essence more or less in detail and as much as possible and, if possible, to describe the brightest differences. Thank you in advance.

    1 answer 1

    Hello. Easy_install and pip are installers for python packages. The syntax is:

    $ еаsy_install package $ pip install package 

    Packages can be installed from anywhere, even from a local directory. Virtalenv is a utility for creating isolated python environments. The directory is set python interpreter with all libraries. Thus, it is possible to keep many different versions of libraries, python interpreters in one system and they will not affect each other. Create an environment ().

     $ virtualenv env 

    Activate:

     $ virtualenv . env/bin/activate (env)user@localhost:~$ 

    Deactivating:

     $ deactivate 

    buildout, setuptools, distribute, distutils

    - tools for building python-packages, as well as for publishing to PYPI (setuptools, distribute, distutils).

    Read the documentation, everything is there. If you are a beginner, then you can safely do without this 'zoo', then gradually figure out when the need arises.