Answer the question
In order to leave comments, you need to log in
Why doesn't embedded python see the pip library?
Good day to all !
I decided to make a mini distribution kit for a python program :)
I downloaded embedded python and installed pip everything as it is and as it were not there :)
When I try to install something, it says:
Traceback (most recent call last):
File "runpy.py", line 193, in _run_module_as_main
File "runpy.py", line 85, in _run_code
File "C:\Users\terno\Desktop\1\Scripts\pip.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'pip'
Answer the question
In order to leave comments, you need to log in
As Homon wrote, yes, the embedded python does not support pip, and this was all the disagreement :)
But the problem is easily solved since I have the main python :)
I just downloaded the library through pip of the main python in this way:
pip install -t <folder where the library will be downloaded > <library name>
Example:
pip install -t C:\Users\ternick\desktop requests
And after downloading, just put python36.zip into the archive - like mine :)
Everything is ready to enjoy life :)
By the way, I almost forgot an important point: )
If the path contains spaces then use quotes :)
For example :
pip install -t "C:\Users\ternick\Desktop" requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question