[troubleshoot][daily][archlinux][pacman] pacman 与 pip 包文件冲突
今天滚系统,再次遭遇包冲突:
(/) checking for file conflicts [###########################################################] %
error: failed to commit transaction (conflicting files)
python2-requests: /usr/lib/python2./site-packages/requests/__init__.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/__init__.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/adapters.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/adapters.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/api.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/api.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/auth.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/auth.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/certs.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/certs.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/compat.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/compat.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/cookies.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/cookies.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/exceptions.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/exceptions.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/hooks.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/hooks.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/models.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/models.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/packages/__init__.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/packages/__init__.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/sessions.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/sessions.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/status_codes.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/status_codes.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/structures.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/structures.pyc exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/utils.py exists in filesystem
python2-requests: /usr/lib/python2./site-packages/requests/utils.pyc exists in filesystem
Errors occurred, no packages were upgraded.
[tong@T7:~]
%
是youcompleteme 依赖了的新包 python2-requests 导致的。
==> New package :
extra/python2-chardet 2.3.- (required by python2-requests)
extra/python2-requests 2.11.- (required by vim-youcompleteme-git)
extra/python2-urllib3 1.19.- (required by python2-requests)
community/python2-bottle 0.12.- (required by vim-youcompleteme-git)
community/python2-future 0.16.- (required by vim-youcompleteme-git)
community/python2-futures 3.0.- (required by vim-youcompleteme-git)
community/python2-jedi 0.9.- (required by vim-youcompleteme-git)
community/python2-waitress 1.0.- (required by vim-youcompleteme-git)
查看了冲突文件,并不属于任何包:
[tong@T7:~]
% pacman -Qo /usr/lib/python2./site-packages/requests/certs.py
error: No package owns /usr/lib/python2./site-packages/requests/certs.py
[tong@T7:~]
% pacman -Qo /usr/lib/python2./site-packages/requests/cookies.py ↵
error: No package owns /usr/lib/python2./site-packages/requests/cookies.py
[tong@T7:~]
% pacman -Ql python2-requests ↵
error: package 'python2-requests' was not found
[tong@T7:~]
查看 pip2,发现是pip2安装的这个包:
[tong@T7:~]
% pip2 list --format=legacy |grep request
requests (2.10.)
[tong@T7:~]
%
从 pip2 卸载掉该包:
[tong@T7:~]
% sudo pip2 uninstall requests ↵
Uninstalling requests-2.10.:
/usr/lib/python2./site-packages/requests-2.10..dist-info/DESCRIPTION.rst
... ...
/usr/lib/python2./site-packages/requests/utils.pyc
Proceed (y/n)? y
Successfully uninstalled requests-2.10.
[tong@T7:~]
%
再滚一次:
( /) Updating the desktop file MIME type cache...
( /) Updating the MIME type database...
(/) Updating Vim help tags...
==> Packages no longer required by any installed package:
boost ncurses5-compat-libs
[tong@T7:~]
%
圆满成功,T7又一次获得了进化。:)
当然还有另一招,就是 --force 。
[troubleshoot][daily][archlinux][pacman] pacman 与 pip 包文件冲突的更多相关文章
- [daily][archlinux] pacman 安装软件时404的问题
时常,我们在archlinux上pacman安装一个软件时,会遇见如图这样的问题: “The requested URL returned error: 404” [classic_tong @ 2 ...
- CentOS5.5上安装Python2.7及ez_setup和pip包
CentOS5.5上安装Python2.7及ez_setup和pip包 下载 首先从Python官方下载源代码包下载 编译安装 这里将python安装到/opt/python27文件夹下 tar xv ...
- 自定义pip 包开发简单说明
文档主要来自官方文档,主要是为了测试学习 创建pip 包项目 项目结构 ├── LICENSE ├── README.md ├── dalongrong_example_pkg │ └── __ini ...
- fadora24安装settools,pip包出错解决方法
1.fadora24安装Python2.7 [root@dev ~]# python bash: python: 未找到命令... 安装软件包“python”以提供命令“python”? [N/y] ...
- 离线下载pip包进行安装【转】
Host-A 不能上网,但是需要在上面安装Python-package 通过另外一台能上网的Host-B主机 1. 下载需要离线安装的Packages 在Host-B上执行如下命令: 安装单个Pack ...
- Windows设置国内源阿里云镜像加速与离线安装pip包的方法
Windows设置国内源阿里云镜像加速1.先在 windows “文件资源管理器” 地址栏 输入 %APPDATA% 按回车,打开程序自定义设置文件夹然后,创建名为 pip 的文件夹,用于存放 pip ...
- pip包管理工具 基本使用
# 简介 pip是一款包管理工具, 和apt, yum, brew功能类似 # 安装 wget --no-check-certificate https://bootstrap.pypa.io/get ...
- Python PIP包管理器
版权所有,未经许可,禁止转载 章节 Python 介绍 Python 开发环境搭建 Python 语法 Python 变量 Python 数值类型 Python 类型转换 Python 字符串(Str ...
- Python基础_如何用pip安装文件
与其他语言相比,Python的一个很大的优势是由丰富的资源库,这就需我们按照自己的来安装文件和包.本节以在windows系统下安装pygame 为例来讲述一下安装步骤. 1. 检测python中有没有 ...
随机推荐
- HDU5785 Interesting(Manacher + 延迟标记)
题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=5785 Description Alice get a string S. She think ...
- Mvc网站发布到IIS
网站发布步骤: 这部分是转载文章 在此标明出处,以前有文章是转的没标明的请谅解,因为有些已经无法找到出处,或者与其它原因. 如有冒犯请联系本人,或删除,或标明出处. 因为好的文章,以前只想收藏,但连接 ...
- HDU 3333 & 离线+线段树
题意: 统计一段区间内不同数字之和.如1 1 2 3 1 统计2---5即1+2+3. SOL: 很少打过离线的题目...这种可离线可在线的题不管怎么样一般都是强行在线... 考虑这题,此前做过一个类 ...
- ACM: HDU 1285 确定比赛名次 - 拓扑排序
HDU 1285 确定比赛名次 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u De ...
- 51Nod 1002 数字三角形 Label:水水水 && 非学习区警告
一个高度为N的由正整数组成的三角形,从上走到下,求经过的数字和的最大值. 每次只能走到下一层相邻的数上,例如从第3层的6向下走,只能走到第4层的2或9上. 5 8 4 3 6 9 7 ...
- Android -- 自定义带进度条的按钮
1. 实现了一个带进度条的按钮,完成后显示提示信息,并设置按钮为不可再次被点击
- Kafka剖析(一):Kafka背景及架构介绍
http://www.infoq.com/cn/articles/kafka-analysis-part-1/ Kafka是由LinkedIn开发的一个分布式的消息系统,使用Scala编写,它以可水平 ...
- [译]FastClick: native-like tapping for touch apps
原文地址:http://labs.ft.com/2011/08/fastclick-native-like-tapping-for-touch-apps/ 这篇文章是一篇老文了,现在才看到,真是落后啊 ...
- 关于webdriver中弹出框的定位
对于webdriver中弹出框的定位,需要引入这个包: import org.openqa.selenium.Alert; 具体语句为: Alert alert= driver.switchTo(). ...
- IDictionary<TKey, TValue> vs. IDictionary
Enumerating directly over an IDictionary<TKey,TValue>returns a sequence of KeyValuePair struc ...