当我尝试pip install idm
时,输出为:
(同样,当我尝试安装任何模块时,因为今天是相同的错误)
C:\Users\saladin>pip install idm
Collecting idm
Using cached https://files.pythonhosted.org/packages/ef/a4/eeaf23afc55409283b9eea0ddaeef0
e7db4e98c9c6382ab904fb7a25e79f/idm-0.34.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\saladin\appdata\local\programs\python\python38-32\python.exe' -c 'i
mport sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\saladin\\AppData\\Local\\Tem
p\\pip-install-q_8nib2w\\idm\\setup.py'"'"'; __file__='"'"'C:\\Users\\saladin\\AppData\\Loc
al\\Temp\\pip-install-q_8nib2w\\idm\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open
)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code
, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\saladin\AppData\Local\Temp\pip-
install-q_8nib2w\idm\pip-egg-info'
cwd: C:\Users\saladin\AppData\Local\Temp\pip-install-q_8nib2w\idm\
Complete output (17 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\saladin\appdata\local\programs\python\python38-32\lib\site-packages\se
tuptools\__init__.py", line 18, in <module>
import setuptools.version
File "c:\users\saladin\appdata\local\programs\python\python38-32\lib\site-packages\se
tuptools\version.py", line 1, in <module>
import pkg_resources
File "c:\users\saladin\appdata\local\programs\python\python38-32\lib\site-packages\pk
g_resources\__init__.py", line 80, in <module>
from pkg_resources.extern import appdirs
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "c:\users\saladin\appdata\local\programs\python\python38-32\lib\site-packages\pk
g_resources\extern\__init__.py", line 43, in load_module
__import__(extant)
File "c:\users\saladin\appdata\local\programs\python\python38-32\lib\site-packages\pk
g_resources\_vendor\appdirs.py", line 560, in <module>
import win32com.shell
ValueError: source code string cannot contain null bytes
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for
full command output.