Python升級PIP


使用 pip 的時候、發現最后有兩行黃顏色的、提示你可以用‘python -m pip install --upgrade pip’升級你的pip

當時我直接就復制粘貼上去運行了、但是報了一堆紅的、試了幾次還是這樣、最后才發現路徑還在桌面上打開的位置

 

這時應該:

1:cd到pip所在文件夾下(查看Python安裝目錄),cd C:\Users\Hlzy\AppData\Local\Programs\Python\Python37\Scripts

2:然后運行python -m pip install --upgrade pip

3:pip --version 查看版本號 已經升級完成了

 

 

或者直接換源下載

python -m pip install --upgrade pip -i https://pypi.doubanio.com/simple

 

 

解決:Consider using the `--user` option or check the permissions.

 


免責聲明!

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



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM