用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
我用下面的命令从源代码编译了python3.7
./configure --prefix=/opt/python3.7.4 --with-ssl
make
make install
pip3.7安装jupyter后,我发现可执行文件在/opt/python3.7.4/bin下
在Python3编译后缺少sqlite3以获得更多关于python3.7和ubuntu14.04下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
大多数情况下(在jupyter不在/local/bin的情况下)使用,
which jupyter
示例输出
~/miniconda3/bin/jupyter
要查看jupyter的路径,请使用sudo显式地使用该路径
sudo ~/miniconda3/bin/jupyter
我尝试了所有的方法,最后在运行树莓派4的树莓派操作系统上,这对我来说是有效的
sudo apt install python3-notebook jupyter jupyter-core
在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