鱼C论坛

 找回密码
 立即注册
查看: 793|回复: 3

Notebook 安装

[复制链接]
发表于 2020-3-19 12:15:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
使用 py -m pip install notebook

下载源改成了国内的。感觉下载都完成了,但是报错如下,哪位仁兄知道怎么回事吗?

    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xxxx\\AppData\\Local\\Temp\\pip-install-lpwfnkgz\\pywinpty\\setup.py'"'"'; __file__='"'"'C:\\Users\\xxxx\\AppData\\Local\\Temp\\pip-install-lpwfnkgz\\pywinpty\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\xxxx\AppData\Local\Temp\pip-install-lpwfnkgz\pywinpty\pip-egg-info'
         cwd: C:\Users\xxxx\AppData\Local\Temp\pip-install-lpwfnkgz\pywinpty\
    Complete output (39 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\xxxx\AppData\Local\Temp\pip-install-lpwfnkgz\pywinpty\setup.py", line 68, in <module>
        setup(
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
        _install_setup_requires(attrs)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-3-21 09:10:42 | 显示全部楼层
截图截完整或者复制完整
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-23 09:13:35 | 显示全部楼层
我现在还不能上传截图。


Microsoft Windows [Version 10.0.18363.693]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\xxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools>cd \

C:\>py -m pip install notebook
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting notebook
  Downloading https://pypi.tuna.tsinghua.edu.c ... .3-py3-none-any.whl (9.7 MB)
     |████████████████████████████████| 9.7 MB 6.4 MB/s
Collecting Send2Trash
  Using cached https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (12 kB)
Collecting ipykernel
  Downloading https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (117 kB)
     |████████████████████████████████| 117 kB 2.2 MB/s
Collecting terminado>=0.8.1
  Downloading https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (33 kB)
Collecting prometheus-client
  Downloading https://pypi.tuna.tsinghua.edu.c ... client-0.7.1.tar.gz (38 kB)
Collecting tornado>=5.0
  Downloading https://pypi.tuna.tsinghua.edu.c ... cp38-cp38-win32.whl (416 kB)
     |████████████████████████████████| 416 kB 6.8 MB/s
Collecting ipython-genutils
  Using cached https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (26 kB)
Collecting pyzmq>=17
  Downloading https://pypi.tuna.tsinghua.edu.c ... cp38-cp38-win32.whl (910 kB)
     |████████████████████████████████| 910 kB 2.2 MB/s
Collecting nbformat
  Downloading https://pypi.tuna.tsinghua.edu.c ... .4-py3-none-any.whl (169 kB)
     |████████████████████████████████| 169 kB 6.4 MB/s
Collecting jinja2
  Downloading https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (126 kB)
     |████████████████████████████████| 126 kB 6.8 MB/s
Collecting jupyter-client>=5.3.4
  Downloading https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (106 kB)
     |████████████████████████████████| 106 kB 6.8 MB/s
Collecting nbconvert
  Downloading https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (455 kB)
     |████████████████████████████████| 455 kB 6.8 MB/s
Collecting traitlets>=4.2.1
  Downloading https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (75 kB)
     |████████████████████████████████| 75 kB 5.1 MB/s
Collecting jupyter-core>=4.6.1
  Downloading https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 5.8 MB/s
Collecting ipython>=5.0.0
  Downloading https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (780 kB)
     |████████████████████████████████| 780 kB 6.4 MB/s
Collecting pywinpty>=0.5; os_name == "nt"
  Downloading https://pypi.tuna.tsinghua.edu.c ... winpty-0.5.7.tar.gz (49 kB)
     |████████████████████████████████| 49 kB ...
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xxxx\\AppData\\Local\\Temp\\pip-install-ign7k1_g\\pywinpty\\setup.py'"'"'; __file__='"'"'C:\\Users\\xxxx\\AppData\\Local\\Temp\\pip-install-ign7k1_g\\pywinpty\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\xxxx\AppData\Local\Temp\pip-install-ign7k1_g\pywinpty\pip-egg-info'
         cwd: C:\Users\xxxx\AppData\Local\Temp\pip-install-ign7k1_g\pywinpty\
    Complete output (45 lines):
    Download error on https://pypi.org/simple/Cython/: _ssl.c:1091: The handshake operation timed out -- Some packages may not be found!
    Couldn't find index page for 'Cython' (maybe misspelled?)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\xxxx\AppData\Local\Temp\pip-install-ign7k1_g\pywinpty\setup.py", line 68, in <module>
        setup(
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
        dist = best[req.key] = env.best_match(
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
        return installer(requirement)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
        return cmd.easy_install(req)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 665, in easy_install
        dist = self.package_index.fetch_distribution(
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 654, in fetch_distribution
        self.find_packages(requirement)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 495, in find_packages
        self.not_found_in_index(requirement)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 555, in not_found_in_index
        self.scan_all()
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 484, in scan_all
        self.scan_url(self.index_url)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 827, in scan_url
        self.process_url(url, True)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\package_index.py", line 357, in process_url
        page = f.read()
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 467, in read
        s = self._safe_read(self.length)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 608, in _safe_read
        data = self.fp.read(amt)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\socket.py", line 669, in readinto
        return self._sock.recv_into(b)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1241, in recv_into
        return self.read(nbytes, buffer)
      File "C:\Users\xxxx\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1099, in read
        return self._sslobj.read(len, buffer)
    socket.timeout: The read operation timed out
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-4-13 16:27:20 | 显示全部楼层
有同学知道啥原因吗?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-26 10:47

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表