[Python] Shared modules from external sources?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
ruwolf
Posts: 885
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 81 times
Been thanked: 65 times

[Python] Shared modules from external sources?

#1 Post by ruwolf »

Hello.

There is standard place /org directory, where are non-debian packages installed.

Can non-debian python packages/modules be installed in similar way?

I have found debian pipenv package, but it installs all used modules for every my environment to separated directory, which is insane for me. When I want to use simple module which depends on huge common used modules like Selenium Driver multiple times.

User avatar
blackbird
Posts: 56
Joined: 2023-08-17 04:42
Has thanked: 2 times
Been thanked: 14 times

Re: [Python] Shared modules from external sources?

#2 Post by blackbird »

Couldn't you use the same virtual environment for all your projects? That's similar to the case with the package manager, where also only one version of each library is installed.

When I need a special environment, I use venv directly. With venv it's easy to set the directory of a environment and reuse it in other projects. But if they need different versions, that don't works. For pipenv I saw there is an environment variable which can specify the pathname to be used for the environment - PIPENV_CUSTOM_VENV_NAME. Maybe that can be used to share one environment.

Post Reply