我如何构建thundersvm?

时间:2019-09-18 09:50:16

标签: python visual-studio svm

我要在我的python项目Github中使用它,这是我遵循的步骤

1 /下载并安装Visual Studio 14 2015 x64社区,然后安装cuda工具包cuda_8.0.61_win10

2 /安装了cmake,并使用创建了项目文件

mkdir build
cd build
cmake ..  -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -DBUILD_SHARED_LIBS=TRUE -G "Visual Studio 14 2015 Win64"

3 /使用Visual Studio正确构建了项目

4 /使用pip install thundersvm安装了Thundersvm

每当我尝试导入thundersvm时,都会出现此问题

C:\Users\frenn\PycharmProjects\charinpt\venv\Scripts\python.exe C:/Users/frenn/PycharmProjects/charinpt/test.py
Traceback (most recent call last):
  File "C:/Users/frenn/PycharmProjects/charinpt/test.py", line 15, in <module>
    import thundersvm.thundersvm
  File "C:\Users\frenn\PycharmProjects\charinpt\venv\lib\site-packages\thundersvm\__init__.py", line 10, in <module>
    from .thundersvm import *
  File "C:\Users\frenn\PycharmProjects\charinpt\venv\lib\site-packages\thundersvm\thundersvm.py", line 39, in <module>
    thundersvm = CDLL(lib_path)
  File "C:\Users\frenn\AppData\Local\Programs\Python\Python37-32\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

Process finished with exit code 1

我可能在安装python软件包的方式上做错了。 这是安装后thundersvm的库文件夹的样子,我认为它缺少其他内容

Thundersvm folder

0 个答案:

没有答案