处理完连不上的MySQL,又遇见一个无法升级的PIP,而且过程很诡异。提示升级失败,但再点开编译器却显示是最新版,pip list还是显示旧版,PyCharm这都是什么毛病……
PyCharm提示PIP升级失败
再次点开提示是最新版
PIP List显示PIP依旧是旧版
自动更新更不上去,挠头,要不试试卸载重装?
1 2 3 4 5 6 7 8 9 10 11 12 13 |
python -m pip install -U --force-reinstall pip # 卸载并重装pip #-------------------------------------------------- (venv) D:\Develop\Python\mengclaw>python -m pip install -U --force-reinstall pip Collecting pip Using cached pip-20.0.2-py2.py3-none-any.whl (1.4 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.0.2 Uninstalling pip-20.0.2: Successfully uninstalled pip-20.0.2 Successfully installed pip-20.0.2 |
本来以为就到此结束了,结果新建了个项目又出更奇葩的问题,重装完还是19.0
重装完还是19.0
搞我呢吧,强制升级走起。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
easy_install -U pip #强制升级pip #-------------------------------------------------- (venv) D:\Develop\Python\mengclaw>easy_install -U pip Searching for pip Reading https://pypi.org/simple/pip/ Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl#sha256=4ae14a42d8adba3205ebeb38aa6 8cfc0b6c346e1ae2e699a0b3bad4da19cef5c Best match: pip 20.0.2 Processing pip-20.0.2-py2.py3-none-any.whl Installing pip-20.0.2-py2.py3-none-any.whl to d:\develop\python\mengclaw\venv\lib\site-packages Adding pip 20.0.2 to easy-install.pth file Installing pip-script.py script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip.exe script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip.exe.manifest script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3-script.py script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3.exe script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3.exe.manifest script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3.8-script.py script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3.8.exe script to D:\Develop\Python\mengclaw\venv\Scripts Installing pip3.8.exe.manifest script to D:\Develop\Python\mengclaw\venv\Scripts Installed d:\develop\python\mengclaw\venv\lib\site-packages\pip-20.0.2-py3.8.egg Processing dependencies for pip Finished processing dependencies for pip |
再看PIP版本,pip 20.0.2,舒服了。
至此升级成功,安软件开工。
本文原创,允许转载。转载请注明出处,谢谢!本文链接:https://www.mengclaw.com/2020/03/20/698/
版权所有©2020萌爪实验室