首页 > 解决方案 > 尝试运行烧瓶应用程序时的非法硬件指令

问题描述

首先是我的mac信息:

macOS Big Sur
Apple M1 Chip
16 GB memory
Python 3.7.9

我试图在我的电脑上运行一个 python 应用程序。我输入后flask run,终端返回

 * Serving Flask app "demo" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with fsevents reloader
 * Debugger is active!
 * Debugger PIN: 260-335-544
I0806 10:14:55.217031 12914655232 file_utils.py:40] PyTorch version 1.6.0 available.
I0806 10:14:55.217122 13005393920 file_utils.py:40] PyTorch version 1.6.0 available.
zsh: illegal hardware instruction  flask run

有谁知道这意味着什么以及如何解决它?(很确定代码中没有错误。我安装了所有必需的包)

标签: pythonmacoszshcpu-architectureapple-m1

解决方案


推荐阅读