首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装requirements.txt错误

安装requirements.txt错误
EN

Stack Overflow用户
提问于 2020-06-12 01:14:44
回答 1查看 222关注 0票数 0

运行pip install -r requirements.txt时,安装失败,并显示以下错误:

代码语言:javascript
复制
  Running setup.py install for parse ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aaopnw0k/parse/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aaopnw0k/parse/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-r_rs8btw/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-aaopnw0k/parse/
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib
    copying parse.py -> build/lib
    running install_lib
    copying build/lib/parse.py -> /usr/local/lib/python3.6/site-packages
    error: could not create '/usr/local/lib/python3.6/site-packages/parse.py': Permission denied
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aaopnw0k/parse/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aaopnw0k/parse/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-r_rs8btw/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

这意味着什么?我如何成功地安装我的需求?

EN

回答 1

Stack Overflow用户

发布于 2020-06-12 01:33:11

尝试使用以下命令sudo pip/pip3 -r requirements.txt

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62329883

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档