【Python錯誤】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...

windows下的Python安裝完成後,會在python的安裝目錄scripts下生成幾個exe文件,其中包括easy_install和pip,

我們將上述路徑添加到系統的環境變量後,在正常情況

下是可以使用,easy_install等工具的,但是在64位的系統中會出現類似下面的錯誤:

C:\Python27\Scripts>easy_install sqlalchemy
Fatal error in launcher: Unable to create process using '"D:\Python27\python.exe
" "C:\Python27\Scripts\easy_install.exe" sqlalchemy

主要原因是在使用easy_install等工具時,工具中的默認的python安裝路徑和系統中的不一致,此時需要我們顯式地調用python進行安裝即可:

python -m easy_install sqlalchemy

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章