我在运行时出现以下错误
$ pip3 install -U pip
Requirement already up-to-date: pip in ./dlenv/lib/python3.6/site-packages (10.0.1)
launchpadlib 1.10.6 requires testresources, which is not installed.我在apt中搜索了一下,testresources似乎已经安装好了。
apt search testresources
Sorting... Done
Full Text Search... Done
python-testresources/bionic,bionic 2.0.0-2 all
PyUnit extension for managing expensive test fixtures - Python 2.x
python3-testresources/bionic,bionic 2.0.0-2 all
PyUnit extension for managing expensive test fixtures - Python 3.我已经看过这个github issue,它在解决方案中不清楚。
发布于 2018-07-12 12:21:59
尝尝这个,
sudo apt install python3-testresources发布于 2018-11-06 16:25:33
建议在Ubuntu18.04上通过PyPA guide安装pip,因为如果我们通过sudo apt install python3-pip安装,pip版本太旧了。
以下是我的工作:
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# python get-pip.py
顺便说一句,pip的默认位置是/usr/local/bin/pip,以防找不到路径。
发布于 2018-07-12 11:26:05
试试这个
sudo apt-get remove python-pip python-dev -这将删除pip和python,然后安装所需版本的python和pip
https://stackoverflow.com/questions/51296770
复制相似问题