python - Archlinux pip 和 setuptools 未升级

标签 python pip archlinux

终端命令:

python -V output: Python 3.5.2

我正在尝试在 pycharm 上更新 pipsetuptools 但出现此错误:

Error :python packaging tool 'pip' not found.

建议的解决方案:

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.5'.

终端命令:

which pip output: usr/bin/pip

我正在尝试终端命令:

pacman -S(or -Syu,-Syy) python-pip or pacman -S(-Syu,-Syy) python-setuptools

resolving dependencies...
looking for conflicting packages...

Packages (5) python-packaging-16.7-1 python-pyparsing-2.1.5-1
             python-setuptools-1:24.0.2-1 python-six-1.10.0-2
             python-pip-8.1.2-1

Total Installed Size: 8.03 MiB

:: Proceed with installation? [Y/n] y
(5/5) checking keys in keyring              [######################] 100%
(5/5) checking package integrity            [######################] 100%
(5/5) loading package files                 [######################] 100%
(5/5) checking for file conflicts           [######################] 100%
error:failed to commit transaction (conflicting files)
python-setuptools: /usr/bin/easy_install exists in filesystem
python-setuptools: /usr/bin/easy_install-3.5 exists in filesystem
python-pip: /usr/bin/pip exists in filesystem
python-pip: /usr/bin/pip3 exists in filesystem
python-pip: /usr/bin/pip3.5 exists in filesystem
Errors occured, no packages were upgraded.

所以我正在尝试:

python -m pip install -U pip

输出:

/usr/bin/python: No module named pip

如何更新pip?

最佳答案

This应该工作:

pacman -S --force python-pip and pacman -S --force python-setuptools

关于python - Archlinux pip 和 setuptools 未升级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38286602/

相关文章:

python - 特定包版本的 pip 依赖树

archlinux - arch-linux 下可以使用 apt 吗

python - opencv背景减法

python - 从提交中获取 GitHub 存储库 URL

python - 管理 Python 包

java - 无法使用自定义注释文件创建 javadoc(无法执行二进制文件)

linux - 错误 : RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, 错误号 0

python - 不能 'merge' 'DataFrameGroupBy'

python - 如何通过匹配内容列表搜索 Pandas 中的特定单元格

python - 如何在新的 virtualenv 上安装 PyQt5 并在 IDLE 上工作