1. 程式人生 > >Python-視窗命令錯誤-bash: pip: command not found

Python-視窗命令錯誤-bash: pip: command not found

1.在執行pip命令時報錯如下:

(說明未安裝pip)
-bash: pip: command not found

2.解決辦法

安裝pip
$ sudo easy_install pip

3.安裝成功後提示

Installed /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

4.此時再執行一切正常(歡迎加入Python研發群,一起入坑)

這裡寫圖片描述