Итак, я работаю над программой для сравнения средней высоты тона различных файлов .wav. Я нашел решение, и он работал на repl.it с использованием aubio, но по какой-то причине каждый раз, когда я делаю pip install aubio
, он выдает около 50 красных строк ошибки. Что-то насчет сборки колес не работает. Итак, есть ли способ сделать это без aubio?
это мое сообщение об ошибке:
C:\Users\GUNDERSON\Desktop\Tourretty>pip3.8 install aubio
Collecting aubio
Using cached aubio-0.4.9.tar.gz (479 kB)
Requirement already satisfied: numpy in c:\users\gunderson\appdata\local\programs\python\python38-32\lib\site-packages (from aubio) (1.19.0)
Building wheels for collected packages: aubio
Building wheel for aubio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\gunderson\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"'; __file__='"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\GUNDERSON\AppData\Local\Temp\pip-wheel-6_sc7w7f'
cwd: C:\Users\GUNDERSON\AppData\Local\Temp\pip-install-7tmi21r0\aubio\
Complete output (32 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\aubio
copying python\lib\aubio\cmd.py -> build\lib.win32-3.8\aubio
copying python\lib\aubio\cut.py -> build\lib.win32-3.8\aubio
copying python\lib\aubio\midiconv.py -> build\lib.win32-3.8\aubio
copying python\lib\aubio\slicing.py -> build\lib.win32-3.8\aubio
copying python\lib\aubio\__init__.py -> build\lib.win32-3.8\aubio
running build_ext
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
checking for aubio = 0.4.9
Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Info: aubio 0.4.9 was not found by pkg-config
Info: looking for *optional* additional packages
checking for libavcodec
Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavformat
Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavutil
Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libswresample
Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavresample
Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for sndfile
Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for samplerate
Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Info: libaubio was not installed or built locally with waf, adding src/
----------------------------------------
ERROR: Failed building wheel for aubio
Running setup.py clean for aubio
Failed to build aubio
Installing collected packages: aubio
Running setup.py install for aubio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\gunderson\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"'; __file__='"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GUNDERSON\AppData\Local\Temp\pip-record-nxsy7j61\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\gunderson\appdata\local\programs\python\python38-32\Include\aubio'
cwd: C:\Users\GUNDERSON\AppData\Local\Temp\pip-install-7tmi21r0\aubio\
Complete output (24 lines):
running install
running build
running build_py
running build_ext
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
checking for aubio = 0.4.9
Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Info: aubio 0.4.9 was not found by pkg-config
Info: looking for *optional* additional packages
checking for libavcodec
Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavformat
Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavutil
Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libswresample
Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for libavresample
Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for sndfile
Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
checking for samplerate
Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Info: libaubio was not installed or built locally with waf, adding src/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\gunderson\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"'; __file__='"'"'C:\\Users\\GUNDERSON\\AppData\\Local\\Temp\\pip-install-7tmi21r0\\aubio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GUNDERSON\AppData\Local\Temp\pip-record-nxsy7j61\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\gunderson\appdata\local\programs\python\python38-32\Include\aubio' Check the logs for full command output.
Дополнительная информация:
- Я использую последняя версия Python 3
- Я использую windows
- Я убедился, что установщик установил переменные пути
- PIP установлен
- Когда я проверил версию Wheel с помощью команды обновления, он сказал, что это уже последняя версия.