简体   繁体   English

在 ubuntu 中安装后我无法运行 jupyter notebook

[英]I am not able to run jupyter notebook after installation in ubuntu

I installed jupyter on my ubuntu system via the following command :我通过以下命令在我的 ubuntu 系统上安装了 jupyter:

sudo pip install jupyter

After executing it I could run jupyter notebook successfully.执行后,我可以成功运行jupyter notebook But unfortunately while trying to upgrade it for python3, I accidentally deleted all jupyter links from my /usr/local/bin .但不幸的是,在尝试为 python3 升级它时,我不小心从我的/usr/local/bin删除了所有jupyter链接。 Now jupyter notebook is not running.现在jupyter notebook没有运行。 I have tried un-installing and re-installing also.我也尝试过卸载和重新安装。 I have no clue about what should I do now.我不知道我现在应该做什么。

Don't install python packages with sudo unless you really know what you're doing.除非你真的知道你在做什么,否则不要用 sudo 安装 python 包。

Try this instead:试试这个:

$ virtualenv myvenv
$ cd myvenv
$ source bin/activate
$ pip install jupyter
$ jupyter notebook

To run it the next time (in a new shell session ie), simply do:要下次运行它(在新的 shell 会话中,即),只需执行以下操作:

$ cd myvenv
$ source bin/activate
$ jupyter notebook

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 全新安装后无法运行“ Jupyter Notebook” - Can't run `jupyter notebook` after fresh installation 我正在尝试运行 jupyter notebook。 但收到以下错误: - I am trying to run jupyter notebook. but getting the following error: 如何使 Jupyter Notebook 指向与 Ubuntu 上的终端相同的 Python 安装? - How to make Jupyter Notebook to point to the same Python installation as Terminal on Ubuntu? 无法运行 jupyter-lab/jupyter-notebook - not able to run jupyter-lab/ jupyter-notebook 为什么我无法在我的 jupyter 笔记本上安装模块“nturl2path”? - Why I am not able to install a module “nturl2path” on my jupyter notebook? jupyter笔记本安装错误 - jupyter notebook installation error 有没有办法在 Jupyter Notebook 上创建一个脚本,我可以在其中运行一个又一个笔记本? - Is there a way to create a script on Jupyter Notebook where I can run one notebook after another? 当我尝试在 VSC 上运行 jupyter 笔记本时,未显示张量板 output - tensor board output is not shown when I am trying to run the jupyter notebook on VSC 无法在 Ubuntu 上的 Python 环境中运行 Jupyter Notebook - Can't run Jupyter Notebook within Python environment on Ubuntu 如何使用 linode 服务器在 Ubuntu 上运行 jupyter notebook? - How to run jupyter notebook on Ubuntu using linode server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM