How to install python modules in a jail

Status
Not open for further replies.

darthvader42

Dabbler
Joined
Oct 30, 2016
Messages
19
I'm in progress of building a jail hosting some python based software having couple of dependencies to modules being found on https://pypi.org/.
Some of these dependencies (e.g. django et.al.) do exists as BSD packages so I can install them easily with `pkg install py36-django`. The point where I got stuck now are dependencies that don't exists as pkg, e.g. https://pypi.org/project/dateparser/. I've tried to install `pkg install py36-pip` but this one doesn't provide a `pip` executable that I can use to install packages the way I did it on Linux.
What is the best practice here? Not using `pkg install` for any additional python modules and solely rely on virtualenv? Or something else?
 

8-bit Yoda

Explorer
Joined
Jun 16, 2018
Messages
68
If you install pip via pkg install py36-pip then the executable is called pip-3.6

If you install pip via python3.6 -m ensurepip then the executable is called pip3.6

You could create a symbolic link to the name pip if you run scripts that rely on that.
 
Status
Not open for further replies.
Top