Jupyter install

  • Win10
  • python3.8
  • pip 19.3.1
  • jupyter 6.0.2

    runner rais Error

    1. > jupyter-notebook.exe
    2. Traceback (most recent call last):
    3. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    4. return _run_code(code, main_globals, None,
    5. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
    6. exec(code, run_globals)
    7. File "C:\Users\63164\AppData\Local\Programs\Python\Python38-32\Scripts\jupyter-notebook.exe\__main__.py", line 7, in <module>
    8. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
    9. return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
    10. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
    11. app.initialize(argv)
    12. File "<c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
    13. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    14. return method(app, *args, **kwargs)
    15. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebookapp.py", line 1720, in initialize
    16. self.init_webapp()
    17. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebookapp.py", line 1482, in init_webapp
    18. self.http_server.listen(port, self.ip)
    19. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\tornado\tcpserver.py", line 152, in listen
    20. self.add_sockets(sockets)
    21. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
    22. self._handlers[sock.fileno()] = add_accept_handler(
    23. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
    24. io_loop.add_handler(sock, accept_handler, IOLoop.READ)
    25. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler
    26. self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
    27. File "c:\users\63164\appdata\local\programs\python\python38-32\lib\asyncio\events.py", line 501, in add_reader
    28. raise NotImplementedError

    fix

    修改 c:\users\63164\appdata\local\programs\python\python38-32\lib\site-packages\tornado\platform\asyncio.py

    #import asyncio

import asyncio;asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

https://github.com/jupyterlab/jupyterlab/issues/6487

windows常见pip手动安装包

pip install jupyter

pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl

pip install mysql

pip install drive:\path\to\the\wheel\MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl

wheel地址