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

(/) 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. Codeforces Round #334 (Div. 2)

    水 A - Uncowed Forces #include <bits/stdc++.h> using namespace std; typedef long long ll; const ...

  2. Spring3.0 demo (注解自动注入)

    这个demo是maven工程,目录结构如下 pom.xml maven依赖 .....省略 <dependency> <groupId>org.springframework& ...

  3. Target:IG

    https://www.zhihu.com/question/25525630 别人轻轻松松红名,我拼死挣扎才1700+分. 仔细想想,虽然我在这东西上花了太多的精力,可是我根本没有认真学.做题全靠抄 ...

  4. Google Chrome开发者工具

    Google Chrome开发者工具 是内嵌到浏览器的开发工具,打开方式有两种:第一“按F12”,第二:shift+ctrl+i(火狐.360等浏览器也可以这么用) Console介绍 Console ...

  5. UVA 10791 - Minimum Sum LCM(坑)

    题目链接 不知道为什么,我用cin,cout就是过不了...改成scanf过了... 还是我居然理解错题意了,已经不能用看错了...至少两个数字,我理解成两个数字了,还写了个爆搜... #includ ...

  6. js小效果-全选

    <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8" ...

  7. AJAX.JSONP 跨域

    var Request = {        timeout: 10 * 1000, // 10秒超时        status: 10,        statusenum: { Wait: 10 ...

  8. e.Handled的理解

    private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)         {    ...

  9. 处理海量数据的高级排序之——快速排序(C++)

    代码实现                                                                                                 ...

  10. 原生js获取Html元素的实际宽度高度

    第一种情况就是宽高都写在样式表里,就比如#div1{width:120px;}.这中情况通过#div1.style.width拿不到宽度,而通过#div1.offsetWidth才可以获取到宽度. 第 ...