日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python项目ImportError: Plotly express requires pandas to be installed.解决方案

發布時間:2025/4/5 python 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python项目ImportError: Plotly express requires pandas to be installed.解决方案 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

      • 遇到的問題
      • 解決方法
      • 參考

遇到的問題

運行

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 pandasDownloading 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.3Downloading 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

參考

[1]https://stackoverflow.com/questions/63656891/importerror-plotly-express-requires-pandas-to-be-installed

總結

以上是生活随笔為你收集整理的python项目ImportError: Plotly express requires pandas to be installed.解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。