[Python] How to import a globally installed package to virtualenv folder

Discussão em 'Python' iniciado por Stack, Março 6, 2025.

  1. Stack

    Stack Membro Participativo

    So I have a virtualenv folder called venv for my python project.

    I can run:

    venv/bin/pip install -r requirements.txt


    Which installs all requirements I need for the project except one, M2Crypto. The only way to install it is through apt-get:

    apt-get install python-m2crypto


    How can I then add this package installed through apt to venv folder?

    Continue reading...

Compartilhe esta Página