[英]Error installing coco-0.4.0.tar.gz in Python: “Command errored out with exit status 1”
I am trying to install coco-0.4.0.tar.gz in python through pip install
, but I'm getting this error:我正在尝试通过pip install
在 python 中安装 coco-0.4.0.tar.gz ,但出现此错误:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\brene\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"'; __file__='"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\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\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\pip-egg-info'
cwd: C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\setup.py", line 9, in <module>
import coco
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\coco.py", line 18, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
coco
0.4.0 , the last release was at Jan 5, 2013. The package announces compatibility with Python 2.6 and 2.7. coco
0.4.0 ,最后一个版本是 2013 年 1 月 5 日。 package 宣布与 Python 2.6 和 2.7 兼容。
setup.py
imports module coco
(from the file coco.py
) which imports docopt
without installing it. setup.py
导入模块coco
(从文件coco.py
)导入docopt
而不安装它。
My resolution is: the package is buggy, old, outdated and abandoned.我的解决方案是:package 有缺陷、陈旧、过时和废弃。 Not recommended for any use.不推荐用于任何用途。
If you want to try it anyway — first install docopt
:如果你想尝试一下——首先安装docopt
:
pip install docopt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.