Closed hohwille closed 1 year ago
Hiya!
I wanted to use it to install pip into an own
pip
folder alongsidepython
folder.
You can't do that. The way that the Python interpreter works is that certain locations are the default import paths for it -- only those paths are used in locating a <packagename>
in import <packagename>
.
By using --prefix
, you're dumping pip's file in an arbitrary location -- a location that may not be on the import paths for the interpreter.
The solution here is to not try to use --prefix
and to instead ship pip as a part of site-packages
in Python. That's the default behaviour of doing a pip install
as well as get-pip.py
and I suggest you stick to that.
get-pip
supports--prefix
option what is great. I wanted to use it to install pip into an ownpip
folder alongsidepython
folder. This creates apip
installation with the desired structure having abin
folder also on Windows avoiding cross-platform incompatibilities. However, the resultingpip
installation does not work:If you have any hint or solution to this problem you would do us a great favor as we want to integrate
python
andpip
into devonfw-ide to make it available easier and create a seamless automated installation for all platforms. UnfortunatelyPython
andpip
are giving us an extraordinary hard time to make this happen.Related issues: