pip安裝錯誤:ImportError: No module named 'pkg_resources'
今天想用pip把setuptools升級到最新版本,結果用 pip install setuptools --upgrate 沒有成功(提示找一個快的映象),
後來我用 pip uninstall setuptools將其解除安裝,當我再執行 pip list 等所有pip的命令的時候出現
Traceback (most recent call last):
File "./pip3.4", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named 'pkg_resources'
解決辦法:
重新安裝python的distribution:
- 下載 distribution : https://pypi.python.org/pypi/distribute
- cd distribution-0.7.3/
- sudo python setup.py install
相關文章
- pyecharts安裝後import錯誤 ImportError: No module named 'pyecharts_snapshot'EchartsImportError
- ImportError: No module named `defusedxml`ImportErrorXML
- ImportError: No module named yamlImportErrorYAML
- ImportError: No module named utilsImportError
- ImportError: No module named cElementTreeImportError
- ImportError: No module named torchvisionImportError
- ImportError: No module named builtinsImportErrorUI
- ImportError: No module named ‘torch‘ 解決方法ImportError
- ImportError:No module named SCons.ScriptImportError
- ImportError: No module named setuptools 解決方法ImportError
- pip成功安裝gdal的whl檔案後,PyCharm仍報錯No module named ‘osgeo’PyCharm
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- ImportError: No module named thrift.Thrift問題解決ImportError
- pip報importError錯誤的一些情況ImportError
- 記錄安裝conda install Python庫時報No module named ‘tensorflow‘錯誤Python
- Window7 python2.7 拋錯ImportError No module named mysql.connectorPythonImportErrorMySql
- linux已經安裝bert4keras但出現ImportError: No module named ‘bert4keras‘LinuxKerasImportError
- Ubuntu20.04安裝LabelImg 以及出現(ModuleNotFoundError: No module named libs.resources)錯誤UbuntuError
- ImportError: No module named flask 導包失敗,Python3 重新安裝 Flask 模組ImportErrorFlaskPython
- media-dispatcher啟動時報ImportError: No module named application.processImportErrorAPP
- 解決已安裝opencv但仍提示報錯“no module named cv2“問題OpenCV
- pip 安裝 grpcio 報錯RPC
- Linux:Python報錯:No module named MySQLdbLinuxPythonMySql
- pycharm環境,命令列執行提示:ImportError: No module named xxx 解決方法PyCharm命令列ImportError
- 關於pip安裝時提示"pkg_resources.DistributionNotFound"錯誤
- ModuleNotFoundError: No module named 'sqlite'ErrorSQLite
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI
- pip 安裝
- 安裝pip
- ModuleNotFoundError: No module named 'pyttsx'ErrorTTS
- ModuleNotFoundError: No module named ‘Crypto‘ ‘Cryptodome‘Error
- centos 解決python3.7 安裝時No module named _ssl 親測有效CentOSPython
- Oracle安裝錯誤Oracle
- pymssql安裝錯誤SQL
- jive安裝錯誤
- CentOS安裝pipCentOS
- ModuleNotFoundError: No module named 'phkit.pinyin'Error
- cocoapods安裝錯誤