T
T
Ternick2019-02-13 00:24:23
Python
Ternick, 2019-02-13 00:24:23

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'

I don’t even know what to do, because if you go to the folder:
C3xZDoh4RAa81lS-xnIuTQ.png
Then we see that everything is as it were :)
In addition to all this, there is a regular python3.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Ternick, 2019-02-13
@Ternick

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 question

Ask a Question

731 491 924 answers to any question