Open EzioQR opened 6 years ago
Thank you!I have installed and compiled the LAPACKE package.But how to connect LAPACKE with Python in order to sovle the problem which is failed to install libact on windows OS? Thank you again for your kindness
Have you add the path of your LAPACKE package to the environment variable?
On Sun, Jul 29, 2018, 12:32 AM EzioQR notifications@github.com wrote:
Thank you!I have installed and compiled the LAPACKE package.But how to connect LAPACKE with Python in order to sovle the problem which is failed to install libact on windows OS? Thank you again for your kindness
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/ntucllab/libact/issues/149#issuecomment-408651309, or mute the thread https://github.com/notifications/unsubscribe-auth/AD_51Rt_oVtHV7b9vjs_hhTl4Y8SRaj-ks5uLTragaJpZM4Vk13Q .
--
--YY
Recently,I have explored the topic about active learning.So others recommend me about the useful machine "libact".When I try to install it on windows,it hints me"Failed building wheel for libact" here is the complete errors list.Kindly help me with the same as to how this can be resolved,Thank you again for your kindness.
Processing f:\exp\active learning 开源工具libact\libact-0.1.4a0.tar.gz Requirement already satisfied: numpy in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (1.14.3) Requirement already satisfied: scipy in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (1.1.0) Requirement already satisfied: scikit-learn in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (0.19.1) Requirement already satisfied: Cython in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (0.28.4) Requirement already satisfied: joblib in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (0.12.1) Requirement already satisfied: six in c:\users\ZYM\anaconda3\lib\site-packages (from libact==0.1.4a0) (1.11.0) Building wheels for collected packages: libact Running setup.py bdist_wheel for libact ... error Complete output from command C:\Users\ZYM\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\ZYM\AppData\Local\Temp\pip-req-build-e2q2_zy7\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\ZYM\AppData\Local\Temp\pip-wheel-39buzbqa --python-tag cp35: Platform Detection: Linux. Link to liblapacke... running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.5 creating build\lib.win-amd64-3.5\libact copying libact__init.py -> build\lib.win-amd64-3.5\libact creating build\lib.win-amd64-3.5\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-3.5\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-3.5\libact\base copying libact\base__init.py -> build\lib.win-amd64-3.5\libact\base creating build\lib.win-amd64-3.5\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\svm.py -> build\lib.win-amd64-3.5\libact\models copying libact\models__init.py -> build\lib.win-amd64-3.5\libact\models creating build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel__init.py -> build\lib.win-amd64-3.5\libact\models\multilabel creating build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\init__.py -> build\lib.win-amd64-3.5\libact\labelers creating build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\init__.py -> build\lib.win-amd64-3.5\libact\query_strategies creating build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\init.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel creating build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\init__.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass creating build\lib.win-amd64-3.5\libact\utils copying libact\utils\init__.py -> build\lib.win-amd64-3.5\libact\utils running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'libact.query_strategies._variance_reduction' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release creating build\temp.win-amd64-3.5\Release\libact creating build\temp.win-amd64-3.5\Release\libact\query_strategies creating build\temp.win-amd64-3.5\Release\libact\query_strategies\src creating build\temp.win-amd64-3.5\Release\libact\query_strategies\src\variance_reduction C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\ZYM\Anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\ZYM\Anaconda3\include -IC:\Users\ZYM\Anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\Include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\ATLMFC\Include" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.5\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11 cl: 命令行 warning D9002 :忽略未知选项“-std=c11” variance_reduction.c libact/query_strategies/src/variance_reduction/variance_reduction.c(5): fatal error C1083: 无法打开包括文件: “lapacke.h”: No such file or directory error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\ZYM\Anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\ZYM\Anaconda3\include -IC:\Users\ZYM\Anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\Include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\ATLMFC\Include" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.5\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2
Failed building wheel for libact Running setup.py clean for libact Failed to build libact Installing collected packages: libact Running setup.py install for libact ... error Complete output from command C:\Users\ZYM\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\ZYM\AppData\Local\Temp\pip-req-build-e2q2_zy7\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\ZYM\AppData\Local\Temp\pip-record-itraqk6w\install-record.txt --single-version-externally-managed --compile: Platform Detection: Linux. Link to liblapacke... running install running build running build_py creating build creating build\lib.win-amd64-3.5 creating build\lib.win-amd64-3.5\libact copying libact__init.py -> build\lib.win-amd64-3.5\libact creating build\lib.win-amd64-3.5\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-3.5\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-3.5\libact\base copying libact\base__init.py -> build\lib.win-amd64-3.5\libact\base creating build\lib.win-amd64-3.5\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.5\libact\models copying libact\models\svm.py -> build\lib.win-amd64-3.5\libact\models copying libact\models__init.py -> build\lib.win-amd64-3.5\libact\models creating build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.5\libact\models\multilabel copying libact\models\multilabel__init.py -> build\lib.win-amd64-3.5\libact\models\multilabel creating build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.5\libact\labelers copying libact\labelers\init__.py -> build\lib.win-amd64-3.5\libact\labelers creating build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies copying libact\query_strategies\init__.py -> build\lib.win-amd64-3.5\libact\query_strategies creating build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\init.py -> build\lib.win-amd64-3.5\libact\query_strategies\multilabel creating build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\init__.py -> build\lib.win-amd64-3.5\libact\query_strategies\multiclass creating build\lib.win-amd64-3.5\libact\utils copying libact\utils\init__.py -> build\lib.win-amd64-3.5\libact\utils running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'libact.query_strategies._variance_reduction' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release creating build\temp.win-amd64-3.5\Release\libact creating build\temp.win-amd64-3.5\Release\libact\query_strategies creating build\temp.win-amd64-3.5\Release\libact\query_strategies\src creating build\temp.win-amd64-3.5\Release\libact\query_strategies\src\variance_reduction C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\ZYM\Anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\ZYM\Anaconda3\include -IC:\Users\ZYM\Anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\Include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\ATLMFC\Include" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.5\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11 cl: 命令行 warning D9002 :忽略未知选项“-std=c11” variance_reduction.c libact/query_strategies/src/variance_reduction/variance_reduction.c(5): fatal error C1083: 无法打开包括文件: “lapacke.h”: No such file or directory error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\ZYM\Anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\ZYM\Anaconda3\include -IC:\Users\ZYM\Anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\Include" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\ATLMFC\Include" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.5\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2
Command "C:\Users\ZYM\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\ZYM\AppData\Local\Temp\pip-req-build-e2q2_zy7\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\ZYM\AppData\Local\Temp\pip-record-itraqk6w\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ZYM\AppData\Local\Temp\pip-req-build-e2q2_zy7\