今天用pip install包的時候,下載完成後報了以下錯誤
ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/local/lib/python2.7/dist-packages/setuptools-20.7.0.post20160415-py2.7.egg
找了找是下面這個原因,原文在:https://pypi.python.org/pypi/setuptools/0.7.5#upgrading-from-distribute
Upgrading from Distribute
Currently, Distribute disallows installing Setuptools 0.7+ over Distribute. You must first uninstall any active version of Distribute first (see Uninstalling).
因爲我昨天升級了一下setuptools
然後解決方法是進
/usr/local/lib/python2.7/dist-packages
把setuptools的文件都刪了