作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我下载了 SageMath-9.2
在我的 Mac 上,但每次我尝试使用笔记本时
通过在我的终端上运行“sage -n jupyter
”
我得到以下按摩:
Please wait while the Sage Jupyter Notebook server starts...
Traceback (most recent call last):
File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/sage/repl/ipython_kernel/install.py", line 307, in have_prerequisites
from notebook.notebookapp import NotebookApp
File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/notebook/notebookapp.py", line 66, in
from tornado import httpserver
File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/tornado/httpserver.py", line 29, in
import ssl
File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/ssl.py", line 98, in
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).
而且由于某种原因我也无法打开该应用程序......每次我点击该应用程序时,我都会看到一个小窗口:
Jupyter Server failed to start
For some reason the Jupyter server failed to start. Please check the log for clues, and have that information handy when asking for help.
我希望得到一些帮助,这对我来说非常重要,因为我必须在我的大学项目中使用 SageMath .. 在此先感谢
最佳答案
在 macOS Big Sur 上,有多种安装 SageMath 的方法
brew install
配置末尾的建议$ DIR=/Applications/SageMath-9.2.app/Contents/Resources/sage
$ cd $DIR
$ git checkout develop
$ git pull origin develop --tags
$ MAKE='make -j8'
$ V=0
$ source .homebrew-build-env
$ make -s V=0 python3-clean
$ make -s V=0 configure
$ ./configure
$ make -s V=0
解决您的问题的另一种方法是使用
$ SAGE_LOCAL=`sage -c 'print(SAGE_LOCAL)'`
$ SAGE_KERNEL=$SAGE_LOCAL/share/jupyter/kernels/sagemath
$ KERNELS=$HOME/Library/Jupyter/kernels
$ ln -s $SAGE_KERNEL $KERNELS
关于python - 有没有办法在 macOS Big Sur 上使用 SageMath?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64838803/
我是一名优秀的程序员,十分优秀!