首页 > 编程语言 >python -- 解决安装pyxll-jupyter时出现“TimeoutError: The read operation timed out"的问题

python -- 解决安装pyxll-jupyter时出现“TimeoutError: The read operation timed out"的问题

时间:2024-03-04 13:11:37浏览次数:85  
标签:jupyter TimeoutError AppData Programs pyxll py Lib line Local

 

在cmd输入命令”pip install pyxll-jupyter“进行安装,控制台出现以下报错信息:

Downloading pyxll_jupyter-0.5.2-py3-none-any.whl (46 kB)
   ---------------------------------------- 46.3/46.3 kB 16.1 kB/s eta 0:00:00
Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Downloading jupyter_client-8.6.0-py3-none-any.whl (105 kB)
   ---------------------------------------- 105.9/105.9 kB 10.7 kB/s eta 0:00:00
Downloading notebook-7.1.1-py3-none-any.whl (5.0 MB)
    --------------------------------------- 0.1/5.0 MB 9.8 kB/s eta 0:08:19
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
    data: bytes = self.__fp.read(amt)
                  ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 473, in read
    s = self.fp.read(amt)
        ^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 706, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1314, in recv_into
    return self.read(nbytes, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1166, in read
    return self._sslobj.read(len, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\req_command.py", line 245, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 179, in resolve
    self.factory.preparer.prepare_linked_requirements_more(reqs)
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 552, in prepare_linked_requirements_more
    self._complete_partial_requirements(
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 467, in _complete_partial_requirements
    for link, (filepath, _) in batch_download:
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\network\download.py", line 183, in __call__
    for chunk in chunks:
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
    with self._error_catcher():
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 158, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

 

解决方法:更换命令语句为”>python -m pip --default-timeout=100 install  pyxll-jupyter“,就可以解决。

> python -m pip --default-timeout=100 install  pyxll-jupyter

 

标签:jupyter,TimeoutError,AppData,Programs,pyxll,py,Lib,line,Local
From: https://www.cnblogs.com/lmei/p/18051586

相关文章

  • python 与jupyter notebook 安装和环境配置
    一、pyhon环境安装下载Python:首先,从Python官方网站(https://www.python.org/downloads/)Download点击下载Python的安装程序运行安装程序:下载完成后,运行Python的安装程序。在安装过程中,确保勾选“AddPythontoPATH”选项,这样可以方便在命令行中使用Python自定义目录......
  • python环境安装与配置 Jupyter Notebook的环境配置
    浏览器上搜索python官网进入官网,点击downloads(下载的意思)在里面自行选择在这里选择需要的版本,点击即可选择自定义安装,勾选添加环境变量下一步全选,第三步修改安装路径,怎么方便怎么来安装成功后,点击键盘Windows+R键进入运行输入cmd进入后输入python可以查看python版本,......
  • Python环境安装与配置及Jupyter Notebook的环境配置
    找到Python的官网:https://www.python.org/选择Downloads选择想要的版本点击进去后下载安装勾选Useadminprivilegeswheninstallingpy.exe(安装py.exe时使用管理员权限)和Addpython.exetoPATH(PATH是Python的环境变量,Python在安装时会自动配置环境变量)有Installnow(......
  • 虚拟环境下安装运行Jupyter Notebook
    首先本地安装虚拟环境1、安装virtualenvwin+R组合键进入运行窗口,然后输入cmd回车确认进入cmd命令窗口。 在cmd命令窗口输入以下命令,安装virtualenv。pipinstallvirtualenv-ihttps://pypi.douban.com/simple运行结果如下: 2.创建虚拟环境用命令行切......
  • 【机器学习科学库】全md文档笔记:Jupyter Notebook和Matplotlib使用(已分享,附代码)
    本系列文章md笔记(已分享)主要讨论人工智能相关知识。主要内容包括,了解机器学习定义以及应用场景,掌握机器学习基础环境的安装和使用,掌握利用常用的科学计算库对数据进行展示、分析,学会使用jupyternotebook平台完成代码编写运行,应用Matplotlib的基本功能实现图形显示,应用Matplotlib......
  • Jupyter Notebook运行R程序安装过程释疑
    JupyterNotebook是一个开源的交互式笔记本环境,支持多种编程语言,包括Python和R。它被广泛应用于数据分析、机器学习、科学计算等领域。在JupyterNotebook中,用户可以结合编写文本、代码和可视化结果,以便于进行数据探索、模型开发以及结果展示。然而,随着项目的进展,往往需要对......
  • windows安装jupyter
    从零开始!JupyterNotebook的安装教程(附带pip和Python的安装教程)_jupyternotebookpipinstall-CSDN博客以及环境变量的设置如果提示jupytercommandnotfound则需要搜索jupyter.exe的文件夹所在路径,将其添加到系统变量的Path变量中去HowtoFixtheJupyterCommandjupyter-......
  • [Kyana]使用Jupyter
    基础安装配置安装本体和nbextensions安装python3.7+pipinstalljupyterpipinstalljupyter_contrib_nbextensionsjupytercontribnbextensioninstall--user好用的扩展推荐Codeprettify、Hinterland、TableofContents(2)、Scratchpad、CollapsibleHeadings、A2t......
  • anaconda+jupyter书写python简简简简简易安装教程,浏览器编写执行Python程序
    anaconda+jupyter书写python简简简简简易安装教程,浏览器编写执行Python程序目录 1、安装anaconda2、打开JupyterNotebook3、创立ipynb文件编写python代码 4、导出python文件(.py)1、安装anaconda下载地址:www.anaconda.com点击Download会下载一个大约600M的安装包,......
  • github在线python数据分析JupyterLite配置
    1、登录个人github账号访问jupyterlite在github的网站,https://github.com/jupyterlite/demo,并将该仓库克隆到个人账户下;Usethistemplate --> ... 2、转到个人github界面下,点击图中设置部分 3、然后选择Pages选项,将默认行为改为GithubActions 4、接下来还需要......