[Enhancement] Add a sample showing how to install packages via PIP
Basti-Fantasti opened this issue · 3 comments
When deploying a Python Embedded environment, pip is automatically installed.
It would be great to have a sample project which e.g. installs requests from pip just to show the process on how to use pip in the embedded environment
Ideal would also be a sample python script which calls the requests module from within the installed embedded environment
(If I can manage it on my own I will make a PR)
I found out that it's more easy than I thought.
Pip packages can be installed using the shell and the included python executable in the embedded distribution.
So pip packages can be installed like this:
python -m pip install mypackageand installing from a requirements works as well like this
python -m pip install -r requirements.txtHello,
When I do this, it installs the requirement in my user app roaming folder and not in the embeded environment.
Any hint ?
I have struggled a while with this problem.
Hello, I will create and share a sample project installing PIP packages.