在windows環境下在安裝paramiko的時候 ,使用命令python -m pip install paramiko 一直報錯
You are using pip version 7.1.2, however version 18.1 is available
解決辦法,pip版本升級。在Python的安裝目錄中。找到Scripts 中的 easy_install-3.5.exe
C:\Users\Admin\AppData\Local\Programs\Python\Python35\Scripts>dir 驅動器 C 中的卷沒有標簽。 卷的序列號是 5CA9-305B C:\Users\Admin\AppData\Local\Programs\Python\Python35\Scripts 的目錄 2018/11/13 07:39 <DIR> . 2018/11/13 07:39 <DIR> .. 2018/11/13 07:36 98,185 chardetect.exe 2018/09/04 15:15 98,194 easy_install-3.5.exe 2018/09/04 15:15 98,194 easy_install.exe 2018/11/13 07:39 337 pip-script.py 2018/11/13 07:39 74,752 pip.exe 2018/11/13 07:39 339 pip3-script.py 2018/11/13 07:39 343 pip3.5-script.py 2018/11/13 07:39 74,752 pip3.5.exe 2018/11/13 07:39 74,752 pip3.exe 9 個文件 519,848 字節 2 個目錄 114,876,874,752 可用字節 C:\Users\Admin\AppData\Local\Programs\Python\Python35\Scripts>
執行一下命令升級pip
C:\Users\Admin\AppData\Local\Programs\Python\Python35\Scripts>easy_install-3.5.exe pip==18.1
然后再次執行安裝paramiko,安裝成功
同理,類似的pip version錯誤,可以通過升級pip版本的方式來解決問題。