当运行pip install channels
时,我得到以下错误。
ImportError:没有名为pathlib的模块
ERROR: Command errored out with exit status 1:
command: 'E:\Users\S.Mary\Documents\WebProject1\chatty_env\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\s3c67~1.mar\\appdata\\local\\temp\\pip-install-spnlrp\\async-timeout\\setup.py'"'"'; __file__='"'"'c:\\users\\s3c67~1.mar\\appdata\\local\\temp\\pip-install-spnlrp\\async-timeout\\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\s3c67~1.mar\appdata\local\temp\pip-pip-egg-info-yzixua'
cwd: c:\users\s3c67~1.mar\appdata\local\temp\pip-install-spnlrp\async-timeout\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\s3c67~1.mar\appdata\local\temp\pip-install-spnlrp\async-timeout\setup.py", line 1, in <module>
import pathlib
ImportError: No module named pathlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
python抱怨找不到名为pathlib的模块。您可以根据python版本使用pip或pip3添加到库中
甚至pathlib2,并相应地更改代码。 https://pypi.org/project/pathlib/
回溯(最近一次调用):文件“”,第1行,在文件“c:\users\s3c67~1.mar\appdata\local\temp\pip install spnlrp\async timeout\setup.py”的第1行,在import pathlib ImportError:没有名为pathlib的模块错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出
在命令行上运行:
或者在Linux上
相关问题 更多 >
编程相关推荐