您的位置:首页 > 编程语言 > Python开发

Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist

2014-05-26 15:04 1071 查看
没想到freebsd上安装openerp会碰到这个问题:

===>   Registering installation for py27-setuptools-2.0.1 as automatic
Installing py27-setuptools-2.0.1...pkg-static: py27-setuptools-2.0.1 conflicts with py27-distribute-0.6.35 (installs files into the same place).  Problematic file: /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
*** [fake-pkg] Error code 70


这里有答案: https://forums.freebsd.org/viewtopic.php?t=44338
其实说白了就是文件冲突.答案就在 /usr/ports/UPDATING - 20140307
查看这个文件的20140307段.

由于我的机器上没有装postmaster和portupgrade, 所以我采用了这种方法:

pkgng users:
# pkg set -o devel/py-setuptools:devel/py-setuptoolsXX
输入y, 然后卸载掉py27-setuptools27-2.0.1

即:

root@example:/usr/ports/devel/py-setuptools27 # pkg set -o devel/py-setuptools:devel/py-setuptools27
root@example:/usr/ports/devel/py-setuptools27 # make clean
root@example:/usr/ports/devel/py-setuptools27 # make deinstall
root@example:/usr/ports/devel/py-setuptools27 # make install




即, 先设置, 然后清理, 然后卸载, 最后重新装一下. 搞定了.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐