pip - “卸载 pip-19.0.1:”挂起
问题描述
我试图pip install --upgrade pip
在我的 Mac 上做,但它挂在Uninstalling pip-19.0.1:
.
谁能告诉我我应该怎么做?
Ties-MBP:10studio-4 chengtie$ pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 1.1MB/s
Installing collected packages: pip
Found existing installation: pip 19.0.1
Uninstalling pip-19.0.1:
解决方案
您应该使用管理员帐户进行操作。尝试“sudo pip install --upgrade pip”。
推荐阅读
- java - 如何获取文档内数组的索引
- python - 如何在 Python 中模拟继承的协作方法
- jpa - 如何使用 RapidClipse 生成交叉表?
- linux - 如何确保由 docker 容器创建的文件不属于 root
- css - 父级的背景不过渡(幻灯片)
- scala - 未找到请求操作的编解码器:[varchar <-> java.lang.Double],从 spark 结构插入 Datastax cassandra
- xamarin - (Xamarin) 将数据从 XAML 传递到 XAML.cs
- python - 删除中文字符
- javascript - 根据用户是否登录,在 React 中更改 Navbar 值的正确方法是什么?
- ios - 为什么它一直说密码不匹配?