在Windows 10上安装numba和llvmlite Python失败
我试图使用Windows在Windows 10上安装Python numba
点安装numba
部分成功,但安装llvmlite失败
resources:
cpu: 2
memory_gb: 2.3
disk_size_gb: 10
volumes:
- name: ramdisk1
volume_type: tmpfs
size_gb: 0.5
不知道LLVM安装在哪里吗?
因此,我使用Windows环境编辑器添加了值C:\ Program Files \ mingw-w64 \ winlibs-x86_64-posix-seh-gcc-9.3.0-llvm-10.0.0-mingw-w64-7.0的LLVM_DIR。 0-r4 \ mingw64 \ lib \ cmake \ llvm
希望它会使用我在C:\ LLVM \ clang-1100,C:\ LLVM \ clang-1000中安装的四个Clang版本之一... 最新的二进制文件是C:\ LLVM \ clang-1100 \ LLVM \ bin
我还安装了VS 1017和1019,并且所有编译器都可以从其他IDE和版本中正常运行。
并下载了最新的车轮
llvmlite-0.34.0-cp39-cp39-win_amd64.whl
并将LLVM_DIR添加到系统PATH
C:\ Program Files \ mingw-w64 \ winlibs-x86_64-posix-seh-gcc-9.3.0-llvm-10.0.0-mingw-w64-7.0.0-r4 \ mingw64 \ lib \ cmake \ llvm
这可以使其更接近工作,但无法使用MSVC
Requirement already satisfied: numpy>=1.15 in c:\users\paul\appdata\local\programs\python\python39\lib\site-packages (from numba) (1.19.2+mkl)
Requirement already satisfied: setuptools in c:\users\paul\appdata\local\programs\python\python39\lib\site-packages (from numba) (49.2.1)
Building wheels for collected packages: numba, llvmlite
Building wheel for numba (setup.py) ... done
Created wheel for numba: filename=numba-0.51.2-cp39-cp39-win_amd64.whl size=2173229 sha256=249a12f2e1436ac244e2730f6e7ddb5bd53413460dcbdc4ed4e6aeebbf16d6ce
Stored in directory: c:\users\paul\appdata\local\pip\cache\wheels\0a\51\41\9f5a61bcd9d25271d7021e05cbabcd574fb3d534d07654b780
Building wheel for llvmlite (setup.py) ... error
ERROR: Command errored out with exit status 1:
CMake Error at CMakeLists.txt:9 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
这表明未指定输出文件夹位置,或者VS增量构建选项未设置为“未使用”。
或者我应该使用LLVM版本,但是我不知道如何指定哪个版本,而不使用VS2017。
建议如何摆脱这个兔子洞;-)
谢谢
保罗
答案 0 :(得分:0)
我想安装librosa
,但是出现此错误,但我设法解决了这个问题:
pip install llvmlite-0.35.0-cp39-cp39-win_amd64.whl
pip install --no-deps packageName
pip install librosa --ignore-installed llvmlite