python项目ImportError: Plotly express requires pandas to be installed.解决方案
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了python项目ImportError: Plotly express requires pandas to be installed.解决方案,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3320字,纯文字阅读大概需要5分钟。
内容图文
![python项目ImportError: Plotly express requires pandas to be installed.解决方案](/upload/InfoBanner/zyjiaocheng/592/553e3ff40ecc4e7dbdbd8d582b44e9ea.jpg)
文章目录
遇到的问题
解决方法
运行
pip install pandas
之后遇到问题如下:
PS D:\user\文档\python\python_work\data_visualization> pip install pandas
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/pandas/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/pandas/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/pandas/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/pandas/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/pandas/
Could not fetch URL https://pypi.org/simple/pandas/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pandas/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))) - skipping
ERROR: Could not find a version that satisfies the requirement pandas
ERROR: No matching distribution found for pandas
然后运行
pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
得以解决,显示Successfully installed pandas-1.2.4 pytz-2021.1
,即成功安装。
PS D:\user\文档\python\python_work\data_visualization> pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
>>
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://pypi.douban.com/simple
Collecting pandas
Downloading http://pypi.doubanio.com/packages/b9/b9/6a13093ca4e4ea11af84fd40076601397f725944add620937f27319a940b/pandas-1.2.4-cp38-cp38-win_amd64.whl (9.3 MB)
|████████████████████████████████| 9.3 MB 2.2 MB/s
Collecting pytz>=2017.3
Downloading http://pypi.doubanio.com/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 3.3 MB/s
Requirement already satisfied: numpy>=1.16.5 in c:\users\m1521\appdata\roaming\python\python38\site-packages (from pandas) (1.20.1+mkl)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\users\m1521\appdata\roaming\python\python38\site-packages (from pandas) (2.8.1)
Requirement already satisfied: six>=1.5 in c:\users\m1521\appdata\roaming\python\python38\site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
Installing collected packages: pytz, pandas
Successfully installed pandas-1.2.4 pytz-2021.1
参考
内容总结
以上是互联网集市为您收集整理的python项目ImportError: Plotly express requires pandas to be installed.解决方案全部内容,希望文章能够帮你解决python项目ImportError: Plotly express requires pandas to be installed.解决方案所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。