pip已安装google.colab,现在无法在Jupyter笔记本上运行代码 [英] pip installed google.colab and now unable to run code on Jupyter notebook
问题描述
完成此操作后,我在终端中使用pip install google.colab
安装了google.colab,它停止工作了.当我打开一个新的jupyter笔记本时,我无法运行任何代码.当我尝试运行任何代码时,它都停留在In[*]
上.在安装google.colab之前,我的笔记本工作正常.我尝试重新启动内核,但这没有用.我还使用了pip uninstall google.colab
,但是给出了以下内容:WARNING: Skipping google.colab as it is not installed.
然后,我尝试通过pip uninstall google-colab
进行卸载,该操作成功地将其卸载了,但没有解决问题.
I installed google.colab using pip install google.colab
in my terminal, after doing this the jupyter notebook that I was working on stopped working. When I opened a new jupyter notebook, I could not run any code. When I tried to run any code it stayed stuck on In[*]
. Before installing google.colab my notebooks were working fine. I tried restarting my kernel but that did not work. I also used pip uninstall google.colab
but that gives the following: WARNING: Skipping google.colab as it is not installed.
Then I tried uninstalling it by pip uninstall google-colab
, which uninstalled it succesfully, but did not fix the issue.
我不确定google.colab是否是无法在jupyter笔记本上运行代码的原因,但这在安装后立即发生.
I'm not sure if google.colab was the cause of not being able to run code on the jupyter notebook, but this happened immediately after the installation.
我有以下软件包,包括jupyter的版本
I have the following packages including version for jupyter
jupyter 1.0.0
jupyter-client 5.3.3
jupyter-console 6.0.0
jupyter-core 4.5.0
jupyterlab 1.1.4
jupyterlab-server 1.0.6
有人可以帮助我吗?谢谢
Can anyone help me? Thank you
推荐答案
这很简单:
- 前往Jupyter的环境.
- 查看笔记本在哪个环境下不工作/不输出.
- 在环境中选择不起作用的环境.
- 删除环境.
- 通过直接添加所需的Python版本来重新安装所需的环境;大约需要5-10分钟.
这篇关于pip已安装google.colab,现在无法在Jupyter笔记本上运行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!