python - 降级 Python(非 Conda)后 Jupyter 无法正常工作
问题描述
有一个关于如何在降级 Python 后让 Jupyter 正确链接的线程,但这是指 Conda 安装。我降级 Python 的动机是TensorFlow 在 Python 3.7 上被破坏了。
卸载 Jupyter 并降级 Python 后,我收到此错误。
/usr/local/bin/jupyter: /usr/local/Cellar/jupyter/1.0.0_5/libexec/bin/jupyter: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
/usr/local/bin/jupyter: line 2: /usr/local/Cellar/jupyter/1.0.0_5/libexec/bin/jupyter: Undefined error: 0
如何正确链接 Jupyter 和 Python 以正常工作?
谢谢,纳库尔
解决方案
首先尝试卸载 jupyter notebook:
brew uninstall jupyter
(如果你在 Mac 上)
或者python3 -m pip uninstall jupyter
然后通过以下方式强制重新安装jupyter:
python3 -m pip install jupyter --force
推荐阅读
- python - Python 读取共享的 Outlook 收件箱,在子或正文中查找文本,如果找到,创建新文件夹或移动到现有
- mysql - 2 列,其中 1 列 [SQL]
- jquery - 如何在画布中使用具有 CSS 中描述的字体的文本元素
- mongodb - 在没有 YUM 的 CentOs 7 上安装 MongoDB。有 rpm 文件但没有 tgz
- wordpress - 从 Urls 中删除文件夹名称
- symfony - 从实体及其关系中选择特定字段
- c - 在linux上用c编译一个简单的函数
- logging - Ultra Task 无法检索全部记录
- css - 如何调整 CSS 网格项元素?如何设置与宽度相同的高度?
- java - 如果先调用flush()然后关闭,为什么Java GzipOutputStream总是在预告片之前写入两个字节03 00?