Home  >  Article  >  Backend Development  >  Python3.7 installation "pyaudio" tutorial

Python3.7 installation "pyaudio" tutorial

Guanhui
Guanhuiforward
2020-07-24 17:30:054339browse

Python3.7 installation

My laptop is installed with python3.7, 64-bit operating system, x64-based processor

Because pyaudio does not currently support python3.7 and 3.8, so If you need to install pyaudio, you need to download the whl file and then install it offline.

First: Download and install the whl file of pyaudio

Download URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Then press ctrl f Enter the keyword: pyaudio

I originally chose the first one, but then I found that it kept prompting an error: ERROR: PyAudio-0.2.11-cp38-cp38-win_amd64 .whl is not a supported wheel on this platform.

Later I checked that it was because the wrong version was selected. cp38 should not be selected, so I tried other versions, and finally tried PyAudio-0.2.11 -cp37-cp37m-win32.whl was successful.

So the detailed steps are as follows:

The first step is to download PyAudio-0.2.11-cp37-cp37m-win32.whl

The second step is to press window r and then Enter cmd to enter the terminal mode. The storage path of my whl file after downloading is the D drive, so enter d in the terminal command: switch to the D drive, then enter dir to view all current folders and find the folder where the whl file is stored. Assume it is a folder named "Download", then enter cd to download

The third step is to install the whl file, enter: pip installPyAudio-0.2.11-cp37-cp37m-win32.whl

Recommended tutorial: "Python Tutorial"

The above is the detailed content of Python3.7 installation "pyaudio" tutorial. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete