![]() Shift Right-Click → Open command window here - instructions on enabling this feature in Windows 10). Open a command window in the same folder as version.py ( ex. ![]() Replace import izip_longest with import zip_longest, as noted in your original question, and then save version.py. Note that you will need to go through the process of decompressing the archive twice (once for the original version-0.1.1.tar.gz file, then once for the remaining version-0.1.1.tar file).įind version.py. To alter and then install version.py in Python 3.x:įully extract version-0.1.1.tar.gz (you can use 7-zip for this on Windows). In your case, this archive includes version.py. So rather than using pip, you can simply download the files yourself as a compressed tar.gz archive using the Download files link. The project you are attempting to install is listed there as version. How do I mitigate this issue and edit the file so that I can run pip install version successfully?Īs a rule, pip pulls modules from PyPI. C:\TruCalvin\testsfolder>pip install versionĬomplete output from command python setup.py egg_info:įile "C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\setup.py", line 4, in įile "C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\version.py", line 2, in Ĭommand "python setup.py egg_info" failed with error code 1 in C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\ So going through different forums, I realized I need to update the file using this import argument import izip_longest and update it to import zip_longest.īut that file version.py seems to be a temporary file and I am unable to access it in Windows 10. ImportError: cannot import name 'izip_longest' ![]() So I tried pip install version which gave me the error below: from itertools import izip_longest ModuleNotFoundError: No module named 'version' I am trying to fix an error: import version ![]()
0 Comments
Leave a Reply. |