![](/img/trans.png)
[英]I need to install “quandl”. But when I type “sudo pip install quandl” in terminal, I get the following error:
[英]When running pip install channels I get the following this error
运行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.
在命令行上运行:
pip install pathlib
或在 Linux
sudo pip install pathlib
python 抱怨找不到名为 pathlib 的模块。 您可以根据您的 python 版本使用 pip 或 pip3 添加到您的库中。
甚至 pathlib2 并相应地更改您的代码。 https://pypi.org/project/pathlib/
Traceback(最近一次调用最后):文件“”,第 1 行,在文件“c:\users\s3c67~1.mar\appdata\local\temp\pip-install-spnlrp\async-timeout\setup.py”中,第 1 行,在 import pathlib ImportError: No module named pathlib -------------------------- -- 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.