未升级Archlinux pip和setuptools [英] Archlinux pip and setuptools not upgraded

查看:160
本文介绍了未升级Archlinux pip和setuptools的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

终端命令:

python -V output: Python 3.5.2

我正在尝试在pycharm上更新pipsetuptools,但是发生了此错误:

I'm trying pip and setuptools update on pycharm but this error occurred :

错误:找不到python打包工具"pip".

Error :python packaging tool 'pip' not found.

建议的解决方案:

尝试从系统终端运行此命令.确保使用正确的版本的'pip',该版本是为位于/usr/bin/python3.5的Python解释器安装的.

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:没有名为pip的模块

/usr/bin/python: No module named pip

如何更新点子?

推荐答案

应该可以工作:

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

这篇关于未升级Archlinux pip和setuptools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆