手动更新PIP

xiaoxiao2021-02-28  33

pip安装Python包的时候,有时候会报下面的错。

You are using pip version 10.0.0, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

这就是有时候使用命令行无法更新PIP,此时需要手动进行更新。

可以参考:

https://blog.csdn.net/lyj_viviani/article/details/70568434

Anaconda更新pip:

通过上面的步骤更新pip,然后使用pip -V查看pip版本的时候没问题,但是我安装pyecharts库pip install pyecharts还是会出现下面的报错:

TypeError: parse() got an unexpected keyword argument 'transport_encoding' 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. Traceback (most recent call last): File "C:\Users\yangyang\AppData\Local\Temp\pip-install-o8j3ichv\jupyter-echarts-pypkg\setup.py", line 8, in <module> from pyecharts_jupyter_installer import install_cmd_for ModuleNotFoundError: No module named 'pyecharts_jupyter_installer'

提醒我pip版本还是需要更新,查看资料之后,发现需要在Anaconda里面进行更新。

查看资料:https://jingyan.baidu.com/article/a3f121e4976996fc9152bb72.html

转载请注明原文地址: https://www.6miu.com/read-1449972.html

最新回复(0)