当您使用pip
安装包时,所有必需的包也将随之安装(依赖项).卸载该包还会删除依赖包吗?
我正在尝试卸载 jupyter。
pip uninstall jupyter
,它给了我这个错误:
Cannot uninstall requirement jupyter, not installed
Run Code Online (Sandbox Code Playgroud)
但which jupyter
说
/usr/local/bin/jupyter
Run Code Online (Sandbox Code Playgroud)
我尝试使用pip install pip-autoremove
然后pip-autoremove jupyter -y
但是给出了这个错误:
Traceback (most recent call last):
File "/usr/local/bin/pip-autoremove", line 11, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/pip_autoremove.py", line 109, in main
autoremove(args, yes=opts.yes)
File "/Library/Python/2.7/site-packages/pip_autoremove.py", line 21, in autoremove
dead = list_dead(names)
File "/Library/Python/2.7/site-packages/pip_autoremove.py", line 28, in list_dead
start = set(map(get_distribution, names))
File "/Users/<username>/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 562, in get_distribution
dist = get_provider(dist)
File "/Users/<username>/Library/Python/2.7/lib/python/site-packages/pkg_resources/__init__.py", line 436, in get_provider …
Run Code Online (Sandbox Code Playgroud) 我正在使用 Windows 机器在虚拟 Ubuntu 16.04 上启动 Jupyter 笔记本服务器。我期望一个 URL 作为输出,我可以将其粘贴到互联网浏览器中并运行 .ipynb 文件。jupyter notebook --ip 0.0.0.0
is producing the following error after I have upgraded Python to 3.7.
*(升级之前,jupyter笔记本工作正常)
\npkj_admin@ip-50-60-0-75:~$ \xc2\xa0jupyter notebook --ip 0.0.0.0 \xc2\xa0 \xc2\xa0\nTraceback (most recent call last):\n\xc2\xa0 File "/usr/local/bin/jupyter", line 5, in <module>\n\xc2\xa0 \xc2\xa0 from jupyter_core.command import main\nModuleNotFoundError: No module named 'jupyter_core'\n
Run Code Online (Sandbox Code Playgroud)\n谢谢
\n在带有 Jupyter 扩展的 Visual Studio 代码中使用 Jupyter 笔记本文件时,我收到错误The kernel failed to start due to the missing module 'ipykernel_launcher'. Consider installing this module. View Jupyter [log](command:jupyter.viewOutput) for further details.
当我选择在 Visual Studio Code 中选择的相同 conda 环境时,此笔记本可以在 JupyterLab Web 应用程序中正常工作。
pip list
显示已安装ipykernel版本5.3.4,但我不知道如何安装ipykernel_launcher。我尝试重新安装 pyzmq但没有帮助。
有什么想法为什么这不起作用吗?
我在 OSX 上使用 pip3 安装了 Jupyter notebook。后来,我意识到,我应该通过 anaconda 来完成,因为它有很多我需要在线学习的库。所以我想尝试卸载 jupyter,然后安装 anaconda。当人们搞砸卸载 jupyter notebook 时,我看到了很多问题。所以我想以正确的方式去做。
我想这样做
$ pip install pip-autoremove
$ pip-autoremove jupyter -y
Run Code Online (Sandbox Code Playgroud)
或者可能正在使用 pip3 ,无论如何,有人知道这是否是正确的方法吗?我从这个问题中得到了这个
谢谢 x