Python 错误:安装要求时命令出错,退出状态为 1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/57243141/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 20:39:17  来源:igfitidea点击:

ERROR: Command errored out with exit status 1 while installing requirements

pythonandroid

提问by Jay Cho

    ERROR: Command errored out with exit status 1:
 command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ib3vl4vt/web.py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ib3vl4vt/web.py/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 pip-egg-info
     cwd: /tmp/pip-install-ib3vl4vt/web.py/
Complete output (7 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-ib3vl4vt/web.py/setup.py", line 6, in <module>
    from web import __version__
  File "/tmp/pip-install-ib3vl4vt/web.py/web/__init__.py", line 14, in <module>
    import utils, db, net, wsgi, http, webapi, httpserver, debugerror
ModuleNotFoundError: No module named 'utils'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

While installing requirements.txt in InsecureBankv2/AndroLabServer, I got this errors. Because of these problems, It seems like InsecureBankv2 app won't login to my server.

在 InsecureBankv2/AndroLabServer 中安装 requirements.txt 时,出现此错误。由于这些问题,InsecureBankv2 应用程序似乎无法登录到我的服务器。

What should I do to solve this problem?

我应该怎么做才能解决这个问题?

回答by Zhiyuan Chen

Have you tried

你有没有尝试过

pip install utils