首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在ubuntu环境下安装autotest

无法在ubuntu环境下安装autotest
EN

Stack Overflow用户
提问于 2020-07-02 08:09:42
回答 1查看 28关注 0票数 1

我正在尝试在ubuntu环境中安装autotest。

代码语言:javascript
复制
$ pip3 install autotest==0.16.4

在我执行之后,我得到了以下错误:

代码语言:javascript
复制
python3 -m pip install autotest==0.16.4
Defaulting to user installation because normal site-packages is not writeable
Collecting autotest==0.16.4
  Using cached autotest-0.16.4.tar.gz (11.3 MB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cw5xzm8k/autotest/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cw5xzm8k/autotest/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 /tmp/pip-pip-egg-info-8yy0dvmj
         cwd: /tmp/pip-install-cw5xzm8k/autotest/
    Complete output (6 lines):
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help
    
    error: invalid command 'egg_info'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

$ python3 --version
Python 3.7.8
$ pip -V
pip 20.1.1 from /home/ubuntu/.local/lib/python3.7/site-packages/pip (python 3.7)
EN

回答 1

Stack Overflow用户

发布于 2020-07-02 08:13:17

尝试:

代码语言:javascript
复制
sudo pip3 install autotest==0.16.4

错误是它不能写入目标,很可能是由于权限的原因。

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

https://stackoverflow.com/questions/62687044

复制
相关文章

相似问题

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