用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
安装 jupyterlab。
如果你得到这个错误:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
requests 2.25.1 requires idna<3,>=2.5, but you'll have idna 3.1 which is incompatible.
用这个:
pip3 install jupyterlab --use-feature=2020-resolver
其他回答
在终端中执行
export PATH=~/anaconda3/bin:$PATH
为我工作过Ubuntu 16.10, Python3, Anaconda3
更新
在~/中添加路径。Bashrc或~/。Zshrc(如果您正在使用ZSH bash)文件
vi ~/.bashrc
向文件中添加以下行
PATH=~/path/to/anaconda:$PATH
用以下命令关闭文件
esc + : + wq
为了能够从终端运行jupyter notebook,您需要确保~/。Local /bin在您的路径中。
通过执行export PATH=$PATH:~/来实现。当前会话的本地/bin,或者将该行添加到~/的末尾。Bashrc使您的更改在以后的会话中持续(例如使用nano ~/. Bashrc)。如果您编辑~/。Bashrc,您将需要登出并重新登录,以查看您的更改生效。
我尝试了所有的方法,最后在运行树莓派4的树莓派操作系统上,这对我来说是有效的
sudo apt install python3-notebook jupyter jupyter-core
对我来说,在激活虚拟环境之前,它不起作用。
以下是我在Linux mint 19上所做的:
我安装jupyter与:
pip install jupyter
和命令:
jupyter notebook
没有工作,所以:
sudo apt install jupyter-notebook
我解决了这个问题,jupyter笔记本工作了。