resampy 安装失败

系列文章目录

提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加
例如:第一章 Python 机器学习入门之pandas的使用


提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档

resampy 安装失败问题


前言

提示:这里可以添加本文要记录的大概内容:
例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。


提示:以下是本篇文章正文内容,下面案例可供参考

一、resampy安装失败

(tensorflow6) F:\Tensorflow\Tensorflow-Audio-Classification-master>pip install resampy0.2.0
Collecting resampy
0.2.0
Collecting numba>=0.32 (from resampy0.2.0)
Using cached https://files.pythonhosted.org/packages/7d/27/0a511b13ee6102125b678e2ad3544b451cddc72419325060823ebcdbdd56/numba-0.47.0-cp35-cp35m-win_amd64.whl
Requirement already satisfied: scipy>=0.13 in e:\anaconda3\envs\tensorflow6\lib\site-packages (from resampy
0.2.0)
Requirement already satisfied: six>=1.3 in e:\anaconda3\envs\tensorflow6\lib\site-packages (from resampy0.2.0)
Requirement already satisfied: numpy>=1.10 in e:\anaconda3\envs\tensorflow6\lib\site-packages (from resampy
0.2.0)
Requirement already satisfied: setuptools in e:\anaconda3\envs\tensorflow6\lib\site-packages (from numba>=0.32->resampy0.2.0)
Collecting llvmlite>=0.31.0dev0 (from numba>=0.32->resampy
0.2.0)
Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Building wheels for collected packages: llvmlite
Running setup.py bdist_wheel for llvmlite … error
Complete output from command E:\Anaconda3\envs\tensorflow6\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\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\86185\AppData\Local\Temp\tmpuk3phgmlpip-wheel- --python-tag cp35:
running bdist_wheel
E:\Anaconda3\envs\tensorflow6\python.exe C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py
Trying generator ‘Visual Studio 14 2015 Win64’
Traceback (most recent call last):
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 192, in
main()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 180, in main
main_win32()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 89, in main_win32
generator = find_win32_generator()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 28, in try_cmake
subprocess.check_call([‘cmake’, ‘-G’, generator, cmake_dir])
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 266, in check_call
retcode = call(*popenargs, **kwargs)
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 247, in call
with Popen(*popenargs, **kwargs) as p:
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 676, in init
restore_signals, start_new_session)
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 957, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
error: command ‘E:\Anaconda3\envs\tensorflow6\python.exe’ failed with exit status 1


Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite, numba, resampy
Running setup.py install for llvmlite … error
Complete output from command E:\Anaconda3\envs\tensorflow6\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\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\86185\AppData\Local\Temp\pip-821hq2el-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
got version from file C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\llvmlite/_version.py {‘full’: ‘aa11b129c0b55973067422397821ae6d44fa5e70’, ‘version’: ‘0.32.1’}
running build_ext
E:\Anaconda3\envs\tensorflow6\python.exe C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py
Trying generator ‘Visual Studio 14 2015 Win64’
Traceback (most recent call last):
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 192, in
main()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 180, in main
main_win32()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 89, in main_win32
generator = find_win32_generator()
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 77, in find_win32_generator
try_cmake(cmake_dir, build_dir, generator)
File “C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\ffi\build.py”, line 28, in try_cmake
subprocess.check_call([‘cmake’, ‘-G’, generator, cmake_dir])
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 266, in check_call
retcode = call(*popenargs, **kwargs)
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 247, in call
with Popen(*popenargs, **kwargs) as p:
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 676, in init
restore_signals, start_new_session)
File “E:\Anaconda3\envs\tensorflow6\lib\subprocess.py”, line 957, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
error: command ‘E:\Anaconda3\envs\tensorflow6\python.exe’ failed with exit status 1

----------------------------------------

Command “E:\Anaconda3\envs\tensorflow6\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite\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\86185\AppData\Local\Temp\pip-821hq2el-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\86185\AppData\Local\Temp\pip-build-e7vdqf3k\llvmlite
You are using pip version 9.0.1, however version 21.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

安装失败原因缺少llvmlite

首先需要先卸载现有的llvmlite
pip uninstall llvmlite

然后根据报错信息中的Collecting llvmlite>=0.31.0dev0 (from numba>=0.32->resampy==0.2.0)
Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Building wheels for collected packages: llvmlite
Running setup.py bdist_wheel for llvmlite … error

找到需要安装的llvmlite版本Collecting llvmlite>=0.31.0dev0 (from numba>=0.32->resampy0.2.0)
按照这个版本进行安装 pip install llvmlite
0.31.0

安装完成后再安装resampy相应版本
pip install resampy==0.xx.x

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值