无法在PyCharm中安装熊猫

问题描述 投票:0回答:1

我是编程的新手。为了稍微入门,我尝试使用pip install Pandas在PyCharm中安装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

由于我已经在Jypiter Notebook中安装了Pandas以便使用,所以Mac终端在输入pip install pandas时会给我以下信息:

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

我很高兴得到任何帮助,非常感谢!

python pandas pip pycharm package
1个回答
0
投票

[不确定这是否有帮助,但是我通常在pycharm中编写一个小的python脚本,该脚本会导入熊猫,然后在脚本窗口中会显示“ pandas not installed”,然后我单击它并为我安装了库。

© www.soinside.com 2019 - 2024. All rights reserved.