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

没想到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
 
  
 
  
即, 先设置, 然后清理, 然后卸载, 最后重新装一下. 搞定了.

你可能感兴趣的:(Python)