我正在尝试在ubuntu环境中安装autotest。
$ pip3 install autotest==0.16.4在我执行之后,我得到了以下错误:
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)发布于 2020-07-02 08:13:17
尝试:
sudo pip3 install autotest==0.16.4错误是它不能写入目标,很可能是由于权限的原因。
https://stackoverflow.com/questions/62687044
复制相似问题