setuptools升級7+引發的錯誤

今天用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的文件都刪了尷尬





發佈了46 篇原創文章 · 獲贊 23 · 訪問量 31萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章