python - 如何在 Ubuntu 18.04 中将 pip3 更新到最新版本?

标签 python python-3.x pip ubuntu-18.04

运行时报错

$ 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 ,解决方案尚不清楚。

最佳答案

试试这个,

sudo apt install python3-testresources

关于python - 如何在 Ubuntu 18.04 中将 pip3 更新到最新版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51296770/

相关文章:

python - virtualenvwrapper 失败并显示 "No module named Help2Man"

Python 表格格式 : want to display the table with one blank element

python - 值错误: cannot use sparse input in 'SVC' trained on dense data

python - 避免递归树中的基本路径

python - pandas 中删除的列重新出现

python - 如何在正则表达式中每行匹配一个?

python - Ubuntu Command 'pip' not found,但有18个类似的

python - 使用自定义证书文件在代理后面进行 Pip

python bokeh plot如何格式化轴显示

开箱即用地支持 MongoDB 的 Python 框架?