[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中有没有 ...
随机推荐
- 快速搭建Webservice接口测试环境
一.必备工具: apache-tomcat.Axis2(WebService引擎).实例类 二.部署步骤: 1.到apache官网 http://apache.org/ 下载apache-tomcat ...
- Static Resources In ASP.NET Core 1.0
静态资源包括HTML,CSS,图片和Js文件.在ASP.NET Core 1.0中,静态资源默认的所在目录是wwwroot,wwwroot可以在project.json中定义. Steps: 在www ...
- java-类
浏览以下内容前,请点击并阅读 声明 java是面向对象的语言,而对象的创建,则需要借助类,类可以说是一个创建对象的模具(个人理解). 类的定义 以下构成定义类的最简单(不能再简单)语句: class ...
- Windows 8 系统安装
系统城 http://www.xitongcheng.com/win8/ 1. 下载 win8: http://msdn.itellyou.cn/2. 准备 4G 以上 U 盘,下载 win8 ...
- ural 1341. Device
1341. Device Time limit: 1.0 secondMemory limit: 64 MB Major (M): You claimed that your device would ...
- NHibernate 中删除数据的几种方法
今天下午有人在QQ群上问在NHibernate上如何根据条件删除多条数据,于是我自己就写了些测试代码,并总结了一下NHibernate中删除数据的方式,做个备忘.不过不能保证囊括所有的方式,如果还有别 ...
- Educational Codeforces Round 15 [111110]
注意一个词:连续 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<bits/ ...
- BZOJ4110 : [Wf2015]Evolution in Parallel
首先每个串都必须是$S$的子序列,否则无解. 按长度从小到大依次考虑每个串,如果它两边都不能放,那么无解. 如果能放一边,那么放进去,把待定的全部放入另一边. 如果两边都能放,那么看看能否待定,如果不 ...
- ubifs核心功能 -- 垃圾回收
可回收空间的分类 垃圾回收的目的是再利用(回收后的空间大小能写入有效的node),如果再利用的价值越低,其回收的必要性越低.为了进行有效的垃圾回收,UBIFS对可回收空间做了2个层次的水线划分: 死空 ...
- 闲扯淡json格式与对象
在这里推荐使用http://json.tongxiehui.net/ 这个在线解析jso格式 JSON 语法是 JavaScript 对象表示语法的子集. 数据在名称/值对中 数据由逗号分隔 花括号保 ...