解決Python中出現的問題: “You are using pip version 9.0.1, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.”


1. 一開始我在使用Pycharm時,導入numpy庫,發現導入錯誤:

Non-zero exit code (1)

2. 於是我通過更新的方法來解決,哪知道在更新的時候也出現了錯誤,錯誤如下圖:

 這個錯誤是在告訴我,我的版本低,需要升級更高的版本才能使用命令python -m pip install --upgrade pip

3. 輸入:

conda install pip

命令提示我又出現了錯誤,內容是You don't appear to have the necessary permissions to install packages,也就是說我沒有權限可以安裝軟件包等。。。我很難受。。。

4. 好了,現在需要先將權限賦予了才能執行下一步操作,按照提示給的命令輸入:

conda create -n my_root --clone="C:\ProgramData\Anaconda3"

 輸入之后你會發現,需要激活my_root

activate my_root

5. 激活之后,就能輸入我們一開始輸進去報錯的命令

conda install pip

一次升級可能還沒有到我們能夠正常更新的版本,因此命令執行完畢之后,要多執行幾次,如果提示 All requested packages already installed.,無需再次更新,那么就ok了。

 

6. 另外,據網上資料所說,官網上有解決的方法,只需要輸入:python -m pip install -U pip,我還沒嘗試過,上面的方法親測有效。

下面截圖是我已經解決了報錯之后輸入的官方給的命令,其實提示一樣,已經更新了, 9.0.1-py36hadba87b_3 --> 19.2.3-py36_0


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 解決You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. openpyxl模塊安裝時報錯: You are using pip version 19.2.3, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.解決方法 解決You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. 解決:使用pip命令安裝第三方庫時報錯WARNING: You are using pip version 19.2.3, however version 20.1.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available. You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command. Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. You are using pip version 9.0.1, however version 18.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 解決如下問題:You are using pip version 8.1.1, however version 18.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 【pycharm】Python pip升級及升級失敗解決方案,報錯:You are using pip version 10.0.1, however version 21.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM