相关疑难解决方法(0)

卸载带有"pip"的软件包是否也会删除依赖软件包?

当您使用pip安装包时,所有必需的包也将随之安装(依赖项).卸载该包还会删除依赖包吗?

python packages pip

123
推荐指数
4
解决办法
8万
查看次数

“pip uninstall jupyter”不起作用,但“which jupyter”返回有效路径

我正在尝试卸载 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)

python pip jupyter

6
推荐指数
1
解决办法
2745
查看次数

ModuleNotFoundError:没有名为“jupyter_core”的模块

我正在使用 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.

\n

*(升级之前,jupyter笔记本工作正常)

\n
pkj_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

python ubuntu virtual-machine jupyter-notebook

6
推荐指数
1
解决办法
7532
查看次数

内核无法在 Visual Studio Code 中启动使用带有 Jupyter 的 conda 环境

在带有 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但没有帮助。

有什么想法为什么这不起作用吗?

jupyter visual-studio-code

6
推荐指数
1
解决办法
1万
查看次数

如何卸载pip3安装的Jupyter Notebook

我在 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

macos pip uninstallation jupyter-notebook

1
推荐指数
1
解决办法
2万
查看次数