运行木星时遇到麻烦。由于环境错误,无法安装包:

2024-06-28 10:49:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚在我的Mac电脑上下载了Python。然而,当我试图在jupyterlab运行我的笔记本时,上面写着“没有命名模块‘熊猫’”。。所以我尝试在pandas上运行pip安装,尽管我列出的包显示pandas已经安装了。它给出了以下错误:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')"))': /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')"))': /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')"))': /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')"))': /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')"))': /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (Caused by SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')")))

我尝试了以下代码:

^{pr2}$

Tags: pipnonebypackagespy3anybadpy2