[英]Can't install Pandas in PyCharm
我是編程的新手。 為了稍微開始,我嘗試使用pip install Pandas
在 PyCharm 中pip install Pandas
。 當我嘗試通過終端或設置安裝它時,我收到以下信息:
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/pandas/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/pandas/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/pandas/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', OSError(0, 'Error'))': /simple/pandas/
Could not find a version that satisfies the requirement pandas (from versions: )
No matching distribution found for pandas
由於我已經安裝了 Pandas 以在 Jypiter Notebook 中使用,因此在輸入pip install pandas
時,mac 終端會為我提供以下信息:
Requirement already satisfied: pandas in ./opt/anaconda3/lib/python3.7/site-packages (0.25.1)
Requirement already satisfied: pytz>=2017.2 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (2019.3)
Requirement already satisfied: python-dateutil>=2.6.1 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (2.8.0)
Requirement already satisfied: numpy>=1.13.3 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (1.17.2)
Requirement already satisfied: six>=1.5 in ./opt/anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas) (1.12.0)
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')"))) - skipping
雖然它看起來像 Pandas 已經安裝在計算機上(那里的 anaconda3 給我帶來了麻煩),但它不適用於 PyCharm。 我在 PyCharm 2019.3 中使用 Python 3.8,我的 pip 版本是 19.0.3
我很高興得到任何幫助,非常感謝!
請試試這個:Pycharm(在你的左上角)>首選項>項目>項目解釋器>+(加號)(表格底部)>輸入pandas>下載
不確定這是否有幫助,但我通常在 pycharm 中編寫一個小的 python 腳本,它導入熊貓,然后在腳本窗口中它會說“熊貓未安裝”,然后我只需單擊它並為我安裝庫。
我收到了同樣的錯誤信息。 我試過一切。 事實證明,Pycharm 只有專業版的 pandas 和 numpy。 請檢查您是否使用免費社區版本,它不支持 pandas 或 numpy
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.