用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
更新的Jupyter版本默认不附带笔记本组件。
根据你的包管理器,你可以通过以下方式安装笔记本组件:
pip install notebook
or
poetry add notebook
其他回答
在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
唯一对我有用的是将与pip3相关的Python版本导出到PATH:)(经过大量的挣扎) 运行:
which pip3
你应该得到这样的东西(在Mac中):
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
现在运行:
export PATH=/Library/Python/3.6/bin:$PATH
如果它对你有用:)就把它添加到你的 Bashrc或ZSHRC
以下是我在Linux mint 19上所做的:
我安装jupyter与:
pip install jupyter
和命令:
jupyter notebook
没有工作,所以:
sudo apt install jupyter-notebook
我解决了这个问题,jupyter笔记本工作了。
如果你使用'pip'而不是'pip3'为Python 2安装Jupyter notebook,它可能会运行:
ipython notebook