用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
用conda重新安装jupyter:
conda install jupyter
其他回答
我都试过了,
pip install jupyter
and
pip3 install jupyter
但最后还是用
sudo -H pip install jupyter
以另一个用户-H执行命令
-H (HOME)选项要求安全策略将HOME环境变量设置为密码数据库指定的目标用户(默认为root)的主目录。根据策略的不同,这可能是默认行为。
现在是2020年。 在我身边用mac解决这个问题: PIP安装jupyterlab而不是PIP安装jupyter。 在成功安装关键字之前会有一个警告: 在这里输入图像描述
你可以用jupyterlab看到路径 然后你只需要开始jupyter笔记本以下路径:
jupyter-lab
笔记本电脑将自动加载由您的默认浏览器。
在终端中执行
export PATH=~/anaconda3/bin:$PATH
为我工作过Ubuntu 16.10, Python3, Anaconda3
更新
在~/中添加路径。Bashrc或~/。Zshrc(如果您正在使用ZSH bash)文件
vi ~/.bashrc
向文件中添加以下行
PATH=~/path/to/anaconda:$PATH
用以下命令关闭文件
esc + : + wq
在Mac OS上,您需要导出~/。在$PATH变量中使用local/bin。
# Edit the bash profile:
$ vim ~/.bash_profile
# Add this line inside ~/.bash_profile:
export PATH=$PATH:~/.local/bin
# Update the source:
$ source ~/.bash_profile
# Open Jupyter:
$ jupyter notebook
在MacOs上,这对我来说很管用:
/Users/`userName`/opt/anaconda3/bin/jupyter_mac.command