2022-01-11,error: Microsoft Visual C++ 14.0 or greater is required.

近日,在通过“pip install jupyter”安装jupyter时,遇到以下报错:

C:\Users\******\AppData\Local\Programs\Python\Python37\Scripts>pip install jupyter
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting jupyter
  Downloading https://pypi.doubanio.com/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl
Collecting notebook (from jupyter)
  Downloading https://pypi.doubanio.com/packages/3d/26/bbbd933a180c9e59b1c001e4aa3085faf144471ce923dd7198549b0a38fe/notebook-6.4.6-py3-none-any.whl (9.9MB)
     |████████████████████████████████| 9.9MB 726kB/s
Collecting qtconsole (from jupyter)
  Downloading https://pypi.doubanio.com/packages/67/17/d12ae86393682eaa65741808aa5207dfe85b8504874d09f1bbd1feebdc2a/qtconsole-5.2.2-py3-none-any.whl (120kB)
     |████████████████████████████████| 122kB 819kB/s
Collecting ipykernel (from jupyter)
  Downloading https://pypi.doubanio.com/packages/51/a4/b95e1252f1bc372a20e86aef727f29434c3fa796333fc0d601f7b06e1224/ipykernel-6.6.1-py3-none-any.whl (126kB)
     |████████████████████████████████| 133kB 819kB/s
Collecting nbconvert (from jupyter)
  Downloading https://pypi.doubanio.com/packages/80/c8/2bce5194d3d4d37db9f00c67e41ed771bf1c77a079794a2d94ca61027fe2/nbconvert-6.4.0-py3-none-any.whl (557kB)
     |████████████████████████████████| 563kB 1.1MB/s
Collecting jupyter-console (from jupyter)
  Downloading https://pypi.doubanio.com/packages/59/cd/aa2670ffc99eb3e5bbe2294c71e4bf46a9804af4f378d09d7a8950996c9b/jupyter_console-6.4.0-py3-none-any.whl
Collecting ipywidgets (from jupyter)
  Downloading https://pypi.doubanio.com/packages/6b/bb/285066ddd710779cb69f03d42fa72fbfe4352b4895eb6abab551eae1535a/ipywidgets-7.6.5-py2.py3-none-any.whl (121kB)
     |████████████████████████████████| 122kB 1.1MB/s
Collecting jinja2 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133kB)
     |████████████████████████████████| 143kB 930kB/s
Collecting tornado>=6.1 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/c7/c2/ff4628a08df5ce2662109957275718888d7ab6787591fa0decfd327bd2ce/tornado-6.1-cp37-cp37m-win_amd64.whl (422kB)
     |████████████████████████████████| 430kB 1.6MB/s
Collecting argon2-cffi (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/a8/07/946d5a9431bae05a776a59746ec385fbb79b526738d25e4202d3e0bbf7f4/argon2_cffi-21.3.0-py3-none-any.whl
Collecting prometheus-client (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/df/6c/6c5f9404977f8f9caa30c1a408f6cc5ea6e0c1949761f24d0a33239b49c5/prometheus_client-0.12.0-py2.py3-none-any.whl (57kB)
     |████████████████████████████████| 61kB 990kB/s
Collecting nbformat (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/e7/c7/dd50978c637a7af8234909277c4e7ec1b71310c13fb3135f3c8f5b6e045f/nbformat-5.1.3-py3-none-any.whl (178kB)
     |████████████████████████████████| 184kB 1.7MB/s
Collecting pyzmq>=17 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/45/1a/e923b5dd29459a70a3573c3b3bd87d2e7a14f7236a999a52f4a603f8fe01/pyzmq-22.3.0-cp37-cp37m-win_amd64.whl (1.1MB)
     |████████████████████████████████| 1.1MB 819kB/s
Requirement already satisfied: traitlets>=4.2.1 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from notebook->jupyter) (5.1.1)
Collecting jupyter-client>=5.3.4 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/ab/0a/c54391499d614a973f78f8bed12f56d25b0cceb041e88191df4ce553d6f4/jupyter_client-7.1.0-py3-none-any.whl (129kB)
     |████████████████████████████████| 133kB 3.3MB/s
Collecting jupyter-core>=4.6.1 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/d5/8e/fad835e31e3f54ea39d2b76027348a347433dcbc674a841ffe0716091c2d/jupyter_core-4.9.1-py3-none-any.whl (86kB)
     |████████████████████████████████| 92kB 1.2MB/s
Collecting terminado>=0.8.3 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/cb/17/b1162b39786c44e14d30ee557fbf41276c4a966dab01106c15fb70f5c27a/terminado-0.12.1-py3-none-any.whl
Collecting nest-asyncio>=1.5 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/06/e0/93453ebab12f5ce9a9ceda2ff71648b30e5f2ce5bba19ee3c95cbd0aaa67/nest_asyncio-1.5.4-py3-none-any.whl
Collecting ipython-genutils (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting Send2Trash>=1.8.0 (from notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/47/26/3435896d757335ea53dce5abf8d658ca80757a7a06258451b358f10232be/Send2Trash-1.8.0-py3-none-any.whl
Requirement already satisfied: pygments in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from qtconsole->jupyter) (2.11.2)
Collecting qtpy (from qtconsole->jupyter)
  Downloading https://pypi.doubanio.com/packages/66/da/b1f7184b82eed20a76066aa0c8482eeababc816012836e47f24090c9f655/QtPy-2.0.0-py3-none-any.whl (62kB)
     |████████████████████████████████| 71kB 1.2MB/s
Collecting debugpy<2.0,>=1.0.0 (from ipykernel->jupyter)
  Downloading https://pypi.doubanio.com/packages/d6/a1/d5ac912cfb945514e9144ecef8f4489ab693ab9bd7772b4a8d4e7ed57adf/debugpy-1.5.1-cp37-cp37m-win_amd64.whl (4.3MB)
     |████████████████████████████████| 4.3MB 1.6MB/s
Requirement already satisfied: matplotlib-inline<0.2.0,>=0.1.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipykernel->jupyter) (0.1.3)
Collecting argcomplete>=1.12.3; python_version < "3.8.0" (from ipykernel->jupyter)
  Downloading https://pypi.doubanio.com/packages/d3/e5/c5509683462e51b070df9e83e7f72c1ccfe3f733f328b4a0f06804c27278/argcomplete-2.0.0-py2.py3-none-any.whl
Collecting importlib-metadata<5; python_version < "3.8.0" (from ipykernel->jupyter)
  Downloading https://pypi.doubanio.com/packages/f9/6c/a14560ec00a14f50fdb3e91665563500b55f3c672e621c3ef159d351e9f7/importlib_metadata-4.10.0-py3-none-any.whl
Requirement already satisfied: ipython>=7.23.1 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipykernel->jupyter) (7.31.0)
Collecting testpath (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/ac/87/5422f6d056bfbded920ccf380a65de3713a3b95a95ba2255be2a3fb4f464/testpath-0.5.0-py3-none-any.whl (84kB)
     |████████████████████████████████| 92kB 590kB/s
Collecting defusedxml (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl
Collecting jupyterlab-pygments (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/a8/6f/c34288766797193b512c6508f5994b830fb06134fdc4ca8214daba0aa443/jupyterlab_pygments-0.1.2-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/64/cc/74d634e1e5659742973a23bb441404c53a7bedb6cd3962109ca5efb703e8/bleach-4.1.0-py2.py3-none-any.whl (157kB)
     |████████████████████████████████| 163kB 1.1MB/s
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/5e/a8/878258cffd53202a6cc1903c226cf09e58ae3df6b09f8ddfa98033286637/pandocfilters-1.5.0-py2.py3-none-any.whl
Collecting mistune<2,>=0.8.1 (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting nbclient<0.6.0,>=0.5.0 (from nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/27/70/69c3561f43ea305da4b360820e67b57244c5308faf1fa890bc444e7cf842/nbclient-0.5.9-py3-none-any.whl (69kB)
     |████████████████████████████████| 71kB 907kB/s
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from jupyter-console->jupyter) (3.0.24)
Collecting jupyterlab-widgets>=1.0.0; python_version >= "3.6" (from ipywidgets->jupyter)
  Downloading https://pypi.doubanio.com/packages/18/4d/22a93473bca99c80f2d23f867ebbfee2f6c8e186bf678864eec641500910/jupyterlab_widgets-1.0.2-py3-none-any.whl (243kB)
     |████████████████████████████████| 245kB 1.3MB/s
Collecting widgetsnbextension~=3.5.0 (from ipywidgets->jupyter)
  Downloading https://pypi.doubanio.com/packages/d7/31/7c1107fa30c621cd1d36410e9bbab86f6a518dc208aaec01f02ac6d5c2d2/widgetsnbextension-3.5.2-py2.py3-none-any.whl (1.6MB)
     |████████████████████████████████| 1.6MB 819kB/s
Collecting MarkupSafe>=2.0 (from jinja2->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/1b/f6/f774e745edd76eef70bf83062823be0dca95ee9c9211f18aec490892ab33/MarkupSafe-2.0.1-cp37-cp37m-win_amd64.whl
Collecting typing-extensions; python_version < "3.8" (from argon2-cffi->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/05/e4/baf0031e39cf545f0c9edd5b1a2ea12609b7fcba2d58e118b11753d68cf0/typing_extensions-4.0.1-py3-none-any.whl
Collecting argon2-cffi-bindings (from argon2-cffi->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/b9/e9/184b8ccce6683b0aa2fbb7ba5683ea4b9c5763f1356347f1312c32e3c66e/argon2-cffi-bindings-21.2.0.tar.gz (1.8MB)
     |████████████████████████████████| 1.8MB 726kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/f7/64/62e99f3c08ab064bf15c6a835e7bb24c23267a70641a995e68797dd2dec3/jsonschema-4.3.3-py3-none-any.whl (71kB)
     |████████████████████████████████| 81kB 655kB/s
Collecting python-dateutil>=2.1 (from jupyter-client>=5.3.4->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
     |████████████████████████████████| 256kB 939kB/s
Collecting pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy" (from jupyter-core>=4.6.1->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/f3/bd/414d8ca015c2f392ae01a82a77de52aa944e261e3da647584a7425a2e506/pywin32-303-cp37-cp37m-win_amd64.whl (9.2MB)
     |████████████████████████████████| 9.3MB 2.2MB/s
Collecting pywinpty>=1.1.0; os_name == "nt" (from terminado>=0.8.3->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/31/54/b05c103bfd9f67e70c5d775b50f99ad550a7cdf603396eb3cef65321bb49/pywinpty-1.1.6-cp37-none-win_amd64.whl (1.4MB)
     |████████████████████████████████| 1.4MB 595kB/s
Collecting packaging (from qtpy->qtconsole->jupyter)
  Downloading https://pypi.doubanio.com/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40kB)
     |████████████████████████████████| 40kB 1.3MB/s
Collecting zipp>=0.5 (from importlib-metadata<5; python_version < "3.8.0"->ipykernel->jupyter)
  Downloading https://pypi.doubanio.com/packages/52/c5/df7953fe6065185af5956265e3b16f13c2826c2b1ba23d43154f3af453bc/zipp-3.7.0-py3-none-any.whl
Requirement already satisfied: setuptools>=18.5 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (41.2.0)
Requirement already satisfied: backcall in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: jedi>=0.16 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.1)
Requirement already satisfied: decorator in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: pickleshare in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.4.4)
Collecting webencodings (from bleach->nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting six>=1.9.0 (from bleach->nbconvert->jupyter)
  Downloading https://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Requirement already satisfied: wcwidth in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.5)
Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/51/1a/d3f1a0ec3bf66deca2e63f1f66c9b1ed8c43aa38b064ba86cbfcffa9ab3a/cffi-1.15.0-cp37-cp37m-win_amd64.whl (179kB)
     |████████████████████████████████| 184kB 930kB/s
Collecting importlib-resources>=1.4.0; python_version < "3.9" (from jsonschema!=2.5.0,>=2.4->nbformat->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/24/1b/33e489669a94da3ef4562938cd306e8fa915e13939d7b8277cb5569cb405/importlib_resources-5.4.0-py3-none-any.whl
Collecting attrs>=17.4.0 (from jsonschema!=2.5.0,>=2.4->nbformat->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/be/be/7abce643bfdf8ca01c48afa2ddf8308c2308b0c3b239a44e57d020afa0ef/attrs-21.4.0-py2.py3-none-any.whl (60kB)
     |████████████████████████████████| 61kB 1.3MB/s
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 (from jsonschema!=2.5.0,>=2.4->nbformat->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/23/58/1bea09b76c845863aa10e7ef364d97101041b21952033f35f7444926093a/pyrsistent-0.18.0-cp37-cp37m-win_amd64.whl (62kB)
     |████████████████████████████████| 71kB 770kB/s
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->qtpy->qtconsole->jupyter)
  Downloading https://pypi.doubanio.com/packages/a0/34/895006117f6fce0b4de045c87e154ee4a20c68ec0a4c9a36d900888fb6bc/pyparsing-3.0.6-py3-none-any.whl (97kB)
     |████████████████████████████████| 102kB 1.6MB/s
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook->jupyter)
  Downloading https://pypi.doubanio.com/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118kB)
     |████████████████████████████████| 122kB 3.2MB/s
Building wheels for collected packages: argon2-cffi-bindings
  Building wheel for argon2-cffi-bindings (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\jochen\appdata\local\programs\python\python37\python.exe' 'c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\Jochen\AppData\Local\Temp\tmp4noylrkb'
       cwd: C:\Users\Jochen\AppData\Local\Temp\pip-install-k8b4awk0\argon2-cffi-bindings
  Complete output (12 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\_argon2_cffi_bindings
  copying src\_argon2_cffi_bindings\_ffi_build.py -> build\lib.win-amd64-3.7\_argon2_cffi_bindings
  copying src\_argon2_cffi_bindings\__init__.py -> build\lib.win-amd64-3.7\_argon2_cffi_bindings
  running build_ext
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for argon2-cffi-bindings
  Running setup.py clean for argon2-cffi-bindings
Failed to build argon2-cffi-bindings
ERROR: Could not build wheels for argon2-cffi-bindings which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 21.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

先检查C++的安装情况: 

然后,根据提示升级pip:

C:\Users\******\AppData\Local\Programs\Python\Python37\Scripts>python -m pip install --upgrade pip
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting pip
  Downloading https://pypi.doubanio.com/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
     |████████████████████████████████| 1.7MB 1.3MB/s
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-21.3.1

再次安装:

C:\Users\******\AppData\Local\Programs\Python\Python37\Scripts>pip install jupyter
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting jupyter
  Downloading https://pypi.doubanio.com/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting qtconsole
  Downloading https://pypi.doubanio.com/packages/67/17/d12ae86393682eaa65741808aa5207dfe85b8504874d09f1bbd1feebdc2a/qtconsole-5.2.2-py3-none-any.whl (120 kB)
     |████████████████████████████████| 120 kB 1.3 MB/s
Collecting ipykernel
  Downloading https://pypi.doubanio.com/packages/51/a4/b95e1252f1bc372a20e86aef727f29434c3fa796333fc0d601f7b06e1224/ipykernel-6.6.1-py3-none-any.whl (126 kB)
     |████████████████████████████████| 126 kB 2.2 MB/s
Collecting notebook
  Downloading https://pypi.doubanio.com/packages/3d/26/bbbd933a180c9e59b1c001e4aa3085faf144471ce923dd7198549b0a38fe/notebook-6.4.6-py3-none-any.whl (9.9 MB)
     |████████████████████████████████| 9.9 MB 1.6 MB/s
Collecting nbconvert
  Downloading https://pypi.doubanio.com/packages/80/c8/2bce5194d3d4d37db9f00c67e41ed771bf1c77a079794a2d94ca61027fe2/nbconvert-6.4.0-py3-none-any.whl (557 kB)
     |████████████████████████████████| 557 kB 1.7 MB/s
Collecting jupyter-console
  Downloading https://pypi.doubanio.com/packages/59/cd/aa2670ffc99eb3e5bbe2294c71e4bf46a9804af4f378d09d7a8950996c9b/jupyter_console-6.4.0-py3-none-any.whl (22 kB)
Collecting ipywidgets
  Downloading https://pypi.doubanio.com/packages/6b/bb/285066ddd710779cb69f03d42fa72fbfe4352b4895eb6abab551eae1535a/ipywidgets-7.6.5-py2.py3-none-any.whl (121 kB)
     |████████████████████████████████| 121 kB 819 kB/s
Requirement already satisfied: ipython>=7.23.1 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipykernel->jupyter) (7.31.0)
Collecting nest-asyncio
  Downloading https://pypi.doubanio.com/packages/06/e0/93453ebab12f5ce9a9ceda2ff71648b30e5f2ce5bba19ee3c95cbd0aaa67/nest_asyncio-1.5.4-py3-none-any.whl (5.1 kB)
Collecting importlib-metadata<5
  Downloading https://pypi.doubanio.com/packages/f9/6c/a14560ec00a14f50fdb3e91665563500b55f3c672e621c3ef159d351e9f7/importlib_metadata-4.10.0-py3-none-any.whl (17 kB)
Collecting debugpy<2.0,>=1.0.0
  Downloading https://pypi.doubanio.com/packages/d6/a1/d5ac912cfb945514e9144ecef8f4489ab693ab9bd7772b4a8d4e7ed57adf/debugpy-1.5.1-cp37-cp37m-win_amd64.whl (4.3 MB)
     |████████████████████████████████| 4.3 MB 373 kB/s
Collecting tornado<7.0,>=4.2
  Downloading https://pypi.doubanio.com/packages/c7/c2/ff4628a08df5ce2662109957275718888d7ab6787591fa0decfd327bd2ce/tornado-6.1-cp37-cp37m-win_amd64.whl (422 kB)
     |████████████████████████████████| 422 kB 1.3 MB/s
Collecting jupyter-client<8.0
  Downloading https://pypi.doubanio.com/packages/ab/0a/c54391499d614a973f78f8bed12f56d25b0cceb041e88191df4ce553d6f4/jupyter_client-7.1.0-py3-none-any.whl (129 kB)
     |████████████████████████████████| 129 kB 2.2 MB/s
Requirement already satisfied: matplotlib-inline<0.2.0,>=0.1.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipykernel->jupyter) (0.1.3)
Collecting argcomplete>=1.12.3
  Downloading https://pypi.doubanio.com/packages/d3/e5/c5509683462e51b070df9e83e7f72c1ccfe3f733f328b4a0f06804c27278/argcomplete-2.0.0-py2.py3-none-any.whl (37 kB)
Requirement already satisfied: traitlets<6.0,>=5.1.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipykernel->jupyter) (5.1.1)
Collecting ipython-genutils~=0.2.0
  Downloading https://pypi.doubanio.com/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting widgetsnbextension~=3.5.0
  Downloading https://pypi.doubanio.com/packages/d7/31/7c1107fa30c621cd1d36410e9bbab86f6a518dc208aaec01f02ac6d5c2d2/widgetsnbextension-3.5.2-py2.py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 304 kB/s
Collecting nbformat>=4.2.0
  Downloading https://pypi.doubanio.com/packages/e7/c7/dd50978c637a7af8234909277c4e7ec1b71310c13fb3135f3c8f5b6e045f/nbformat-5.1.3-py3-none-any.whl (178 kB)
     |████████████████████████████████| 178 kB 1.1 MB/s
Collecting jupyterlab-widgets>=1.0.0
  Downloading https://pypi.doubanio.com/packages/18/4d/22a93473bca99c80f2d23f867ebbfee2f6c8e186bf678864eec641500910/jupyterlab_widgets-1.0.2-py3-none-any.whl (243 kB)
     |████████████████████████████████| 243 kB 2.2 MB/s
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from jupyter-console->jupyter) (3.0.24)
Requirement already satisfied: pygments in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from jupyter-console->jupyter) (2.11.2)
Collecting jupyterlab-pygments
  Downloading https://pypi.doubanio.com/packages/a8/6f/c34288766797193b512c6508f5994b830fb06134fdc4ca8214daba0aa443/jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting mistune<2,>=0.8.1
  Downloading https://pypi.doubanio.com/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting jupyter-core
  Downloading https://pypi.doubanio.com/packages/d5/8e/fad835e31e3f54ea39d2b76027348a347433dcbc674a841ffe0716091c2d/jupyter_core-4.9.1-py3-none-any.whl (86 kB)
     |████████████████████████████████| 86 kB 563 kB/s
Collecting entrypoints>=0.2.2
  Downloading https://pypi.doubanio.com/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting bleach
  Downloading https://pypi.doubanio.com/packages/64/cc/74d634e1e5659742973a23bb441404c53a7bedb6cd3962109ca5efb703e8/bleach-4.1.0-py2.py3-none-any.whl (157 kB)
     |████████████████████████████████| 157 kB 939 kB/s
Collecting jinja2>=2.4
  Downloading https://pypi.doubanio.com/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 1.1 MB/s
Collecting pandocfilters>=1.4.1
  Downloading https://pypi.doubanio.com/packages/5e/a8/878258cffd53202a6cc1903c226cf09e58ae3df6b09f8ddfa98033286637/pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting testpath
  Downloading https://pypi.doubanio.com/packages/ac/87/5422f6d056bfbded920ccf380a65de3713a3b95a95ba2255be2a3fb4f464/testpath-0.5.0-py3-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 487 kB/s
Collecting defusedxml
  Downloading https://pypi.doubanio.com/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting nbclient<0.6.0,>=0.5.0
  Downloading https://pypi.doubanio.com/packages/27/70/69c3561f43ea305da4b360820e67b57244c5308faf1fa890bc444e7cf842/nbclient-0.5.9-py3-none-any.whl (69 kB)
     |████████████████████████████████| 69 kB 714 kB/s
Collecting argon2-cffi
  Downloading https://pypi.doubanio.com/packages/a8/07/946d5a9431bae05a776a59746ec385fbb79b526738d25e4202d3e0bbf7f4/argon2_cffi-21.3.0-py3-none-any.whl (14 kB)
Collecting pyzmq>=17
  Downloading https://pypi.doubanio.com/packages/45/1a/e923b5dd29459a70a3573c3b3bd87d2e7a14f7236a999a52f4a603f8fe01/pyzmq-22.3.0-cp37-cp37m-win_amd64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 1.1 MB/s
Collecting terminado>=0.8.3
  Downloading https://pypi.doubanio.com/packages/cb/17/b1162b39786c44e14d30ee557fbf41276c4a966dab01106c15fb70f5c27a/terminado-0.12.1-py3-none-any.whl (15 kB)
Collecting prometheus-client
  Downloading https://pypi.doubanio.com/packages/df/6c/6c5f9404977f8f9caa30c1a408f6cc5ea6e0c1949761f24d0a33239b49c5/prometheus_client-0.12.0-py2.py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 893 kB/s
Collecting Send2Trash>=1.8.0
  Downloading https://pypi.doubanio.com/packages/47/26/3435896d757335ea53dce5abf8d658ca80757a7a06258451b358f10232be/Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting qtpy
  Downloading https://pypi.doubanio.com/packages/66/da/b1f7184b82eed20a76066aa0c8482eeababc816012836e47f24090c9f655/QtPy-2.0.0-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 27 kB/s
Collecting typing-extensions>=3.6.4
  Downloading https://pypi.doubanio.com/packages/05/e4/baf0031e39cf545f0c9edd5b1a2ea12609b7fcba2d58e118b11753d68cf0/typing_extensions-4.0.1-py3-none-any.whl (22 kB)
Collecting zipp>=0.5
  Downloading https://pypi.doubanio.com/packages/52/c5/df7953fe6065185af5956265e3b16f13c2826c2b1ba23d43154f3af453bc/zipp-3.7.0-py3-none-any.whl (5.3 kB)
Requirement already satisfied: pickleshare in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: backcall in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: colorama in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.4.4)
Requirement already satisfied: setuptools>=18.5 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (41.2.0)
Requirement already satisfied: decorator in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: jedi>=0.16 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.1)
Collecting MarkupSafe>=2.0
  Downloading https://pypi.doubanio.com/packages/1b/f6/f774e745edd76eef70bf83062823be0dca95ee9c9211f18aec490892ab33/MarkupSafe-2.0.1-cp37-cp37m-win_amd64.whl (14 kB)
Collecting python-dateutil>=2.1
  Downloading https://pypi.doubanio.com/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 1.1 MB/s
Collecting pywin32>=1.0
  Downloading https://pypi.doubanio.com/packages/f3/bd/414d8ca015c2f392ae01a82a77de52aa944e261e3da647584a7425a2e506/pywin32-303-cp37-cp37m-win_amd64.whl (9.2 MB)
     |████████████████████████████████| 9.2 MB 85 bytes/s
Collecting jsonschema!=2.5.0,>=2.4
  Downloading https://pypi.doubanio.com/packages/f7/64/62e99f3c08ab064bf15c6a835e7bb24c23267a70641a995e68797dd2dec3/jsonschema-4.3.3-py3-none-any.whl (71 kB)
     |████████████████████████████████| 71 kB 33 kB/s
Requirement already satisfied: wcwidth in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.5)
Collecting pywinpty>=1.1.0
  Downloading https://pypi.doubanio.com/packages/31/54/b05c103bfd9f67e70c5d775b50f99ad550a7cdf603396eb3cef65321bb49/pywinpty-1.1.6-cp37-none-win_amd64.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 318 kB/s
Collecting argon2-cffi-bindings
  Downloading https://pypi.doubanio.com/packages/37/2c/e34e47c7dee97ba6f01a6203e0383e15b60fb85d78ac9a15cd066f6fe28b/argon2_cffi_bindings-21.2.0-cp36-abi3-win_amd64.whl (30 kB)
Collecting six>=1.9.0
  Downloading https://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings
  Downloading https://pypi.doubanio.com/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting packaging
  Downloading https://pypi.doubanio.com/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 650 kB/s
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\jochen\appdata\local\programs\python\python37\lib\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Downloading https://pypi.doubanio.com/packages/23/58/1bea09b76c845863aa10e7ef364d97101041b21952033f35f7444926093a/pyrsistent-0.18.0-cp37-cp37m-win_amd64.whl (62 kB)
     |████████████████████████████████| 62 kB 82 kB/s
Collecting attrs>=17.4.0
  Downloading https://pypi.doubanio.com/packages/be/be/7abce643bfdf8ca01c48afa2ddf8308c2308b0c3b239a44e57d020afa0ef/attrs-21.4.0-py2.py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 911 kB/s
Collecting importlib-resources>=1.4.0
  Downloading https://pypi.doubanio.com/packages/24/1b/33e489669a94da3ef4562938cd306e8fa915e13939d7b8277cb5569cb405/importlib_resources-5.4.0-py3-none-any.whl (28 kB)
Collecting cffi>=1.0.1
  Downloading https://pypi.doubanio.com/packages/51/1a/d3f1a0ec3bf66deca2e63f1f66c9b1ed8c43aa38b064ba86cbfcffa9ab3a/cffi-1.15.0-cp37-cp37m-win_amd64.whl (179 kB)
     |████████████████████████████████| 179 kB 1.3 MB/s
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading https://pypi.doubanio.com/packages/a0/34/895006117f6fce0b4de045c87e154ee4a20c68ec0a4c9a36d900888fb6bc/pyparsing-3.0.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 534 kB/s
Collecting pycparser
  Downloading https://pypi.doubanio.com/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 6.4 MB/s
Installing collected packages: zipp, typing-extensions, six, pywin32, pyrsistent, importlib-resources, importlib-metadata, attrs, tornado, pyzmq, python-dateutil, pyparsing, pycparser, nest-asyncio, jupyter-core, jsonschema, ipython-genutils, entrypoints, webencodings, packaging, nbformat, MarkupSafe, jupyter-client, cffi, testpath, pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, defusedxml, debugpy, bleach, argon2-cffi-bindings, argcomplete, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, qtconsole, jupyter-console, ipywidgets, jupyter
  WARNING: The scripts jupyter-migrate.exe, jupyter-troubleshoot.exe and jupyter.exe are installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script jsonschema.exe is installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script jupyter-trust.exe is installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts jupyter-kernel.exe, jupyter-kernelspec.exe and jupyter-run.exe are installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script jupyter-execute.exe is installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script send2trash.exe is installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts jupyter-dejavu.exe and jupyter-nbconvert.exe are installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts jupyter-bundlerextension.exe, jupyter-nbextension.exe, jupyter-notebook.exe and jupyter-serverextension.exe are installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script jupyter-console.exe is installed in 'c:\users\jochen\appdata\local\programs\python\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.0 argcomplete-2.0.0 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 attrs-21.4.0 bleach-4.1.0 cffi-1.15.0 debugpy-1.5.1 defusedxml-0.7.1 entrypoints-0.3 importlib-metadata-4.10.0 importlib-resources-5.4.0 ipykernel-6.6.1 ipython-genutils-0.2.0 ipywidgets-7.6.5 jinja2-3.0.3 jsonschema-4.3.3 jupyter-1.0.0 jupyter-client-7.1.0 jupyter-console-6.4.0 jupyter-core-4.9.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.2 mistune-0.8.4 nbclient-0.5.9 nbconvert-6.4.0 nbformat-5.1.3 nest-asyncio-1.5.4 notebook-6.4.6 packaging-21.3 pandocfilters-1.5.0 prometheus-client-0.12.0 pycparser-2.21 pyparsing-3.0.6 pyrsistent-0.18.0 python-dateutil-2.8.2 pywin32-303 pywinpty-1.1.6 pyzmq-22.3.0 qtconsole-5.2.2 qtpy-2.0.0 six-1.16.0 terminado-0.12.1 testpath-0.5.0 tornado-6.1 typing-extensions-4.0.1 webencodings-0.5.1 widgetsnbextension-3.5.2 zipp-3.7.0

测试安装结果:

C:\Users\******\AppData\Local\Programs\Python\Python37\Scripts>ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 11:18:58.892 NotebookApp] Writing notebook server cookie secret to C:\Users\Jochen\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
[I 11:18:58.939 NotebookApp] Serving notebooks from local directory: C:\Users\Jochen\AppData\Local\Programs\Python\Python37\Scripts
[I 11:18:58.939 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:18:58.939 NotebookApp] http://localhost:8888/?token=102908ba18b4b5b53989ae5fd6e7e624f0769aa097fecad2
[I 11:18:58.939 NotebookApp]  or http://127.0.0.1:8888/?token=102908ba18b4b5b53989ae5fd6e7e624f0769aa097fecad2
[I 11:18:58.939 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:18:59.036 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/******/AppData/Roaming/jupyter/runtime/nbserver-11320-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=102908ba18b4b5b53989ae5fd6e7e624f0769aa097fecad2
     or http://127.0.0.1:8888/?token=102908ba18b4b5b53989ae5fd6e7e624f0769aa097fecad2

此时会自动在浏览器打开网页:

这时可以新建一个notebook页面:

 编辑Notebook可以选择代码模式与文本编辑模式,点击File可以导出各种不同格式的文件:

由于IPython Notebook是基于Web服务模式的,所以我们可以在远程服务器打开IPython服务器,在本地客户端启动IPython Web交互界面,这样可以很方便地操作远程数据。

引用自:IPython介绍_Gavin-CSDN博客_ipython本文简要介绍了IPython的使用方法,以及IPython Notebook的使用方法https://blog.csdn.net/gavin_john/article/details/53086766 在一个输入框即Cell中使用回车即Enter键,表示换行,也就是说一个Cell中可以输入多条语句。

一个Cell中的命令可以由两种方式运行:

Shift + Enter 小格内的所有代码将会在当前的IPython交互命名空间中运行,运行结果将会立即在输入框下面的输出区域显示,且一个新的输入框会出现。
Ctrl + Enter 组合键只会显示运行结果而不会创建新的输入框
我们也可以使用上面的菜单栏和工具栏对Cell进行各种增删复制粘贴等操作。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值