1. 程式人生 > >解決Command "python setup.py egg_info" failed with error code 問題

解決Command "python setup.py egg_info" failed with error code 問題

當執行命令時  會出現這種情況

 Command "python setup.py egg_info" failed with error code

出現這種情況的話,應該是 setuptools 沒有安裝。

開啟窗口出入 cmd 命令,輸入

pip install setuptools

pip install  distribute

在執行命令的時候,如果出現

[WinError 5] 拒絕訪問 這種情況  這是需要管理員許可權的,可以直接在命令列加 --user 

pip install --user setuptools

也可以執行easy_install -U setuptools 這句命令 (推薦)