Python installation management

There are many versions of Python, and it becomes difficult for them to manage them.

Often I need to install one module in 3 different versions of Python.

Is there a tool that can simplify?

I am on Windows.

Thanks.

+6
source share
4 answers

Since some modules contain binary code that is linked again to a particular version of Python, it will not be possible to install the module only once. You will always need to install it for each installed version. But if you use pip, you should take a look at pip: working with multiple versions of Python? Just create a batch file that calls pip for each installed version. This should at least simplify your life.

+1
source

Do you use virtualenv? If not, you definitely want to check this out: http://pypi.python.org/pypi/virtualenv

It helps you manage and switch between multiple Python virtual environments with different versions of Python, if you want.

There are many customization tutorials around the world.

+2
source

What Legogris said: use virtualenv.

I just answered the question on pip , virtualenv and virtualenvwrapper applicable here. I highly recommend this combination of tools to support python sandboxes.

As another point, I highly recommend using the no-site-packages option so that every virtualenv has all its requirements in one place.

+2
source

I do not know any Python tools for this, it really works with the OS. For example, Debian / Ubuntu supports installing multiple versions of Python and installing libraries in each version. I doubt that such support is missing on Windows.

-3
source

Source: https://habr.com/ru/post/895479/


All Articles