用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
在MacOs上,这对我来说很管用:
/Users/`userName`/opt/anaconda3/bin/jupyter_mac.command
其他回答
如果你使用'pip'而不是'pip3'为Python 2安装Jupyter notebook,它可能会运行:
ipython notebook
用conda重新安装jupyter:
conda install jupyter
在MacOs上,这对我来说很管用:
/Users/`userName`/opt/anaconda3/bin/jupyter_mac.command
安装 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
更新的Jupyter版本默认不附带笔记本组件。
根据你的包管理器,你可以通过以下方式安装笔记本组件:
pip install notebook
or
poetry add notebook