安装jupyter的时候,一直显示
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: jupyter in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (1.0.0)
Requirement already satisfied: ipywidgets in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (7.5.1)
Requirement already satisfied: notebook in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (6.1.4)
Requirement already satisfied: nbconvert in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (6.0.4)
Requirement already satisfied: ipykernel in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (5.3.4)
Requirement already satisfied: qtconsole in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (4.7.7)
Requirement already satisfied: jupyter-console in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter) (6.2.0)
Requirement already satisfied: nbformat>=4.2.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipywidgets->jupyter) (5.0.7)
Requirement already satisfied: traitlets>=4.3.1 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipywidgets->jupyter) (5.0.4)
Requirement already satisfied: ipython>=4.0.0; python_version >= "3.3" in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipywidgets->jupyter) (7.18.1)
Requirement already satisfied: widgetsnbextension~=3.5.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipywidgets->jupyter) (3.5.1)
Requirement already satisfied: jupyter-core>=4.6.1 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (4.6.3)
Requirement already satisfied: prometheus-client in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (0.8.0)
Requirement already satisfied: terminado>=0.8.3 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (0.9.1)
Requirement already satisfied: argon2-cffi in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (20.1.0)
Requirement already satisfied: ipython-genutils in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (0.2.0)
Requirement already satisfied: jupyter-client>=5.3.4 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (6.1.7)
Requirement already satisfied: tornado>=5.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (6.0.4)
Requirement already satisfied: jinja2 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (2.11.2)
Requirement already satisfied: Send2Trash in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (1.5.0)
Requirement already satisfied: pyzmq>=17 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from notebook->jupyter) (19.0.2)
Requirement already satisfied: bleach in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (3.2.1)
Requirement already satisfied: pygments>=2.4.1 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (2.7.1)
Requirement already satisfied: jupyterlab-pygments in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.1.1)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (1.4.2)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.3)
Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.5.0)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.8.4)
Requirement already satisfied: testpath in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.4.4)
Requirement already satisfied: defusedxml in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbconvert->jupyter) (0.6.0)
Requirement already satisfied: qtpy in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from qtconsole->jupyter) (1.9.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter-console->jupyter) (3.0.7)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbformat>=4.2.0->ipywidgets->jupyter) (3.2.0)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (0.4.3)
Requirement already satisfied: pickleshare in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (0.7.5)
Requirement already satisfied: jedi>=0.10 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (0.17.2)
Requirement already satisfied: backcall in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (0.2.0)
Requirement already satisfied: decorator in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (4.4.2)
Requirement already satisfied: setuptools>=18.5 in c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages (from ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (40.8.0)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jupyter-core>=4.6.1->notebook->jupyter) (228)
Requirement already satisfied: pywinpty>=0.5; os_name == "nt" in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from terminado>=0.8.3->notebook->jupyter) (0.5.7)
Requirement already satisfied: cffi>=1.0.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from argon2-cffi->notebook->jupyter) (1.14.2)
Requirement already satisfied: six in c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages (from argon2-cffi->notebook->jupyter) (1.15.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages (from jupyter-client>=5.3.4->notebook->jupyter) (2.8.1)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jinja2->notebook->jupyter) (1.1.1)
Requirement already satisfied: packaging in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from bleach->nbconvert->jupyter) (20.4)
Requirement already satisfied: webencodings in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: nest-asyncio in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter) (1.4.0)
Requirement already satisfied: async-generator in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter) (1.10)
Requirement already satisfied: wcwidth in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.5)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (0.17.3)
Requirement already satisfied: attrs>=17.4.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (20.2.0)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (1.7.0)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from jedi>=0.10->ipython>=4.0.0; python_version >= "3.3"->ipywidgets->jupyter) (0.7.1)
Requirement already satisfied: pycparser in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from cffi>=1.0.0->argon2-cffi->notebook->jupyter) (2.20)
Requirement already satisfied: pyparsing>=2.0.2 in c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages (from packaging->bleach->nbconvert->jupyter) (2.4.7)
Requirement already satisfied: zipp>=0.5 in c:\users\shebin xu\appdata\roaming\python\python37\site-packages (from importlib-metadata; python_version < "3.8"->jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (3.1.0)
按照网上的办法,都解决不了
后来找到jupyter在用户->appdata->…->python_37里头,而pip在另一个文件夹下,因为当初是在Visual Code中安装的,cmd下调用的是的visual code的安装目录。
解决方案:
1、根据requirement already后面的地址找到jupyter的安装目录,双击jupyter-notebook.exe
2、或直接复制jupyter相关文件到原先目录(visual code安装目录)下,就可以在cmd中调用了。