I am trying to fix an error:
import version
ModuleNotFoundError: No module named 'version'
So I tried pip install version
which gave me the error below:
from itertools import izip_longest
ImportError: cannot import name 'izip_longest'
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
.
But that file version.py
seems to be a temporary file and I am unable to access it in Windows 10.
C:\TruCalvin\testsfolder>pip install version
Collecting version
Using cached https://files.pythonhosted.org/packages/fd/b6/fa3b2c859d4d8817a106e4272029d78a2afbca0a27139997a4e5515bbf60/version-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\setup.py", line 4, in <module>
from version import __version__
File "C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\version.py", line 2, in <module>
from itertools import izip_longest
ImportError: cannot import name 'izip_longest'
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Tru~1\AppData\Local\Temp\pip-install-d5jk1cru\version\
How do I mitigate this issue and edit the file so that I can run pip install version
successfully?
Thanks in advance.