可以在 M1 Mac 上安装 Librosa 吗?我通过conda install -c conda-forge librosa(miniforge)尝试了 pip 和 Conda,但收到此错误:
# conda install -c conda-forge librosa
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. …Run Code Online (Sandbox Code Playgroud) 我有一个问题:
">OKMemoryError: 内存分配失败,正在分配 13759 字节"
我已经尝试过 ESP32 4MB 和 16MB 闪存,所以没有办法,它无法处理这段代码。我相信这是因为“零”、“一个”、“两个”变量,因为当我将它们注释掉并只保留“零”时,例如,它工作正常。但是..我的意思是来吧,整个文件是38kb,ESP32的内存是16MB,它必须处理它......
有什么问题?
from machine import Pin, I2C
import ssd1306
from time import sleep
# ESP32 Pin assignment
i2c = I2C(-1, scl=Pin(22), sda=Pin(21))
i2c2 = I2C(-1, scl=Pin(4), sda=Pin(2))
i2c3 = I2C(-1, scl=Pin(19), sda=Pin(18))
i2c4 = I2C(-1, scl=Pin(5), sda=Pin(15))
i2c5 = I2C(-1, scl=Pin(32), sda=Pin(33))
ZERO = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, …Run Code Online (Sandbox Code Playgroud)