python - 尝试运行烧瓶应用程序时的非法硬件指令
问题描述
首先是我的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
有谁知道这意味着什么以及如何解决它?(很确定代码中没有错误。我安装了所有必需的包)
解决方案
推荐阅读
- c - 使用 ulimit 命令更改堆栈的软限制
- android - 无法在 BottomSheetBehavior 内的 NestedScrollView 内滚动 RecyclerView
- csv - 响应 cURL 请求时使用什么内容配置?
- c# - 无法在项目的 VS 2017 中运行调试模式
- jquery - 在锚标记中清空 Onclick 和 href
- makefile - 文件目标是否是 PHONY 目标的先决条件?
- abap - 如何使用多个非必填输入字段进行搜索?
- powerbi - power bi 复合模型中的切片器控制不刷新
- powershell - PowerShell 删除 URL 列表中特殊字符后的文本
- php - 说明如何在 PHP 中使用简单的路由系统