Skip to content

Tag: virtualenv

import local package during poetry run

I just transitioned from pipenv to poetry and I’m having trouble importing a package from a local package I’m developing in a few of my scripts. To make this more concrete, my project looks something like: Within myscript.py, I import mypackage. But when I poetry run bin/myscript.py I get a Module…

Clone a python virtualenv to an offline server

Hi I want to clone a python virtualenv to a server that’s not connected to the internet, I searched different forums but didn’t find a clear answer. Here are the methods I found and the problems I have with each : Methode 1 : (safest but most time consuming) Save all the libraries via a pip freeze…