[英]Error while installing PyAudio on M1 Macbook even after installing portaudio
I have installed Xcode and Homebrew.我已经安装了 Xcode 和 Homebrew。 Then I have also installed the portaudio package using Homebrew
brew install portaudio
.然后我还使用 Homebrew
brew install portaudio
安装了 portaudio package 。 After doing that, I have tried to install PyAudio.之后,我尝试安装 PyAudio。
I have tried all the following commands:我已经尝试了以下所有命令:
pip install pyaudio
python3 -m pip install pyaudio
conda install -c anaconda pyaudio
I am currently trying to install PyAudio on my Conda environment.我目前正在尝试在我的 Conda 环境中安装 PyAudio。 I am using Miniconda on Macbook M1.
我在 Macbook M1 上使用 Miniconda。
Is there any way to solve this, or if not how am I supposed to build the package and place it in my python site-packages??有什么办法可以解决这个问题,或者如果没有,我应该如何构建 package 并将其放在我的 python 站点包中?
Kindly Help.请帮助。
I solved the issue by removing an unwanted urllib3 folder without METADATA inside my python site-packages folder.我通过在我的 python 站点包文件夹中删除没有 METADATA 的不需要的 urllib3 文件夹解决了这个问题。 And then switched the terminal to run on Rosetta2 and It worked.
然后将终端切换到在 Rosetta2 上运行,它工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.