今天滚系统,再次遭遇包冲突:

(/) 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 包文件冲突的更多相关文章

  1. [daily][archlinux] pacman 安装软件时404的问题

    时常,我们在archlinux上pacman安装一个软件时,会遇见如图这样的问题: “The requested URL returned error: 404”  [classic_tong @ 2 ...

  2. CentOS5.5上安装Python2.7及ez_setup和pip包

    CentOS5.5上安装Python2.7及ez_setup和pip包 下载 首先从Python官方下载源代码包下载 编译安装 这里将python安装到/opt/python27文件夹下 tar xv ...

  3. 自定义pip 包开发简单说明

    文档主要来自官方文档,主要是为了测试学习 创建pip 包项目 项目结构 ├── LICENSE ├── README.md ├── dalongrong_example_pkg │ └── __ini ...

  4. fadora24安装settools,pip包出错解决方法

    1.fadora24安装Python2.7 [root@dev ~]# python bash: python: 未找到命令... 安装软件包“python”以提供命令“python”? [N/y] ...

  5. 离线下载pip包进行安装【转】

    Host-A 不能上网,但是需要在上面安装Python-package 通过另外一台能上网的Host-B主机 1. 下载需要离线安装的Packages 在Host-B上执行如下命令: 安装单个Pack ...

  6. Windows设置国内源阿里云镜像加速与离线安装pip包的方法

    Windows设置国内源阿里云镜像加速1.先在 windows “文件资源管理器” 地址栏 输入 %APPDATA% 按回车,打开程序自定义设置文件夹然后,创建名为 pip 的文件夹,用于存放 pip ...

  7. pip包管理工具 基本使用

    # 简介 pip是一款包管理工具, 和apt, yum, brew功能类似 # 安装 wget --no-check-certificate https://bootstrap.pypa.io/get ...

  8. Python PIP包管理器

    版权所有,未经许可,禁止转载 章节 Python 介绍 Python 开发环境搭建 Python 语法 Python 变量 Python 数值类型 Python 类型转换 Python 字符串(Str ...

  9. Python基础_如何用pip安装文件

    与其他语言相比,Python的一个很大的优势是由丰富的资源库,这就需我们按照自己的来安装文件和包.本节以在windows系统下安装pygame 为例来讲述一下安装步骤. 1. 检测python中有没有 ...

随机推荐

  1. 快学Java NIO

    Java NIO Tutorial 地址:http://tutorials.jenkov.com/java-nio/index.html Java NIO系列教程译文地址:http://ifeve.c ...

  2. 每天一个linux命令--locate

    linux下,不知道自己安装的程序放在哪里了,可以使用locate命令进行查找. [hongye@dev107 ~]$ locate activemq.xml /home/hongye/hongyeC ...

  3. [ JS 进阶 ] test, exec, match, replace

    https://segmentfault.com/a/1190000003497780 对了,这篇文章可能会涉及到正则表达式相关知识,所以推荐没有正则基础的去看看这篇入门文章:正则表达式30分钟入门教 ...

  4. UVA 393

    The Doors Description You are to find the length of the shortest path through a chamber containing o ...

  5. bzoj2962 序列操作 题解

    题目大意: 有一个长度为n的序列,有三个操作1.I a b c表示将[a,b]这一段区间的元素集体增加c,2.R a b表示将[a,b]区间内所有元素变成相反数,3.Q a b c表示询问[a,b]这 ...

  6. 【BZOJ】2659: [Beijing wc2012]算不出的算式

    题意 给两个奇质数\(p, q(p, q < 2^{31})\),求\(\sum_{k=1}^{\frac{p-1}{2}} \left \lfloor \frac{kq}{p} \right ...

  7. Maven的第一个小程序

    这里是介绍关于maven的第一个小程序 关于maven的安装 : Install Maven in your computer 先看看目录结构: 这是本来的项目目录结构,由于maven有自己的目录结构 ...

  8. 线上Java应用排查和诊断规范

    @郑昀 整理 标准做法一:OOM触发HeadpDump 目的: OOM发生时,输出堆栈快照文件,供研发人员分析. 在JVM中,如果98%的时间是用于 GC 且可用的 Heap size 不足2%的时候 ...

  9. Windows环境下的NodeJS+NPM+Bower安装配置步骤

    Windows下的NodeJS安装是比较方便的(v0.6.0版本之后,支持windows native),只需要登陆官网(http://nodejs.org/),便可以看到首页的“INSTALL”按钮 ...

  10. javascrit2.0完全参考手册(第二版) 第2章第3节 变量

    变量存储数据.每个变量都有一个名字,叫做标识符.在js中声明变量使用var关键字,var为新的数据分配存储空间,或者指示一直标识符正在使用.声明变量非常简单: var x; 这个语句告诉解释器一个新的 ...