While installing docopts on embedded python 3.10.x, I get the error below.
C:\python-test>python -m pip install docopt
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\USERNAME\AppData\Local\Temp\pip-install-vay8c09t\docopt_4efa83b2b473433daff04efbcd1abd51\setup.py", line 3, in <module>
from docopt import __version__
ModuleNotFoundError: No module named 'docopt'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Download docopt.py into the python directory and then try the install command again.
After placing the file and running the install command, I get
C:\python-test>python -m pip install docopt
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: docopt
Building wheel for docopt (setup.py) ... done
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13775 sha256=cdcde61e4f717d8c46c37a9f2eef1e01a311a556ba054a83b314c81cb47b9cba
Stored in directory: c:\users\USERNAME\appdata\local\pip\cache\wheels\fc\ab\d4\5da2067ac95b36618c629a5f93f809425700506f72c9732fac
Successfully built docopt
Installing collected packages: docopt
Successfully installed docopt-0.6.2