简体   繁体   English

为什么我不能安装 plotly? 这是网络问题吗?

[英]Why can't I install plotly? Is this a network issue?

This is the error it gives in cmd这是它在 cmd 中给出的错误

I've tried to reinstall python, reinstall pip, upgrade pip and all return the same error messages.我尝试重新安装 python、重新安装 pip、升级 pip,但都返回相同的错误消息。

I managed to solve it我设法解决了

simply type this entire line out, replace PACKAGE NAME with whatever you want to install python -m pip install PACKAGE NAME --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org只需键入整行,将 PACKAGE NAME 替换为您要安装的任何内容python -m pip install PACKAGE NAME --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org

in python 3.10, you need to custom the ssl for the python. you can check from this documentation.在python 3.10中,你需要为python自定义ssl。你可以查看这个文档。 https://docs.python.org/3/using/unix.html?highlight=openssl#custom-openssl https://docs.python.org/3/using/unix.html?highlight=openssl#custom-openssl

another alternative is download the library manually from pypi.org, then install them offline.另一种选择是从 pypi.org 手动下载库,然后离线安装它们。 https://files.pythonhosted.org/packages/aa/71/77c8429c083688a10abab2a096c06fb62f6b986c02242e5b487eb68cbca7/plotly-5.10.0.tar.gz https://files.pythonhosted.org/packages/aa/71/77c8429c083688a10abab2a096c06fb62f6b986c02242e5b487eb68cbca7/plotly-5.10.0.tar.gz

then from your terminal install: pip install plotly-5.10.0.tar.gz然后从您的终端安装:pip install plotly-5.10.0.tar.gz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM