【发布时间】:2021-05-09 08:38:17
【问题描述】:
运行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 django pip django-channels