[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中有没有 ...
随机推荐
- Centos搭建Linux测试环境,几个基本的设置项
一.添加sudo 权限 1.su - 切换至root,需要rootmim 2.修改 /etc/sudoers 的权限 chmod 644 /etc/sudoers 3.vi /etc/sudoers ...
- Service Provider模式
参考文章:[http://blog.csdn.net/zl3450341/article/details/7227197] Service Interface:服务接口,将服务通过抽象统一声明,供客户 ...
- java代码获知该方法被哪个类、哪个方法、在哪一行调用
public class TestMain { public static void main(String[] args){ hello(); } public static void hello( ...
- URAL1996 Cipher Message 3(KMP + FFT)
题目 Source http://acm.timus.ru/problem.aspx?space=1&num=1996 Description Emperor Palpatine has be ...
- POJ2942 Knights of the Round Table(点双连通分量 + 二分图染色)
题目大概说要让n个骑士坐成一圈,这一圈的人数要是奇数且大于2,此外有些骑士之间有仇恨不能坐在一起,问有多少个骑士不能入座. 双连通图上任意两点间都有两条不重复点的路径,即一个环.那么,把骑士看做点,相 ...
- Visual Studio 2010: 调试引用的dll的代码?
right click the solution in the Solution Explorer-> Properties-> Debug ->Enable Debuggers- ...
- javascript的基本语法、数据结构
本篇学习资料主要讲解javascript的基本语法.数据结构 无论是传统的编程语言,还是脚本语言,都具有数据类型.常量和变量.运算符.表达式.注释语句.流程控制语句等基本元素构成,这些基本元 ...
- java中的IO操作总结
一.InputStream重用技巧(利用ByteArrayOutputStream) 对同一个InputStream对象进行使用多次. 比如,客户端从服务器获取数据 ,利用HttpURLConnect ...
- Android Acitivity 生命周期
Activity的生命周期: (1)启动Activity:系统会先调用onCreate方法,然后调用onStart方法,最后调用onResume,Activity进入运行状态. (2)当前Activi ...
- 让mysql有直接写redis能力
1.文件包下载 http://pan.baidu.com/s/1qW9DHYc 2.安装 gcc -fPIC -Wall -I/usr/local/mysql/include/mysql -I. -s ...