Closed wxl112 closed 4 years ago
oh I tired to pip it on the anaconda3,system windows10
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
It seems you don't have the C++ tools needed to build C extensions.
If you still have trouble building C extensions, you can consider install the package without hintsvm and variance reduction by setting the options to 0 (https://github.com/ntucllab/libact/#installation-options)
yeah thanks for your advice right now I'm trying to build a C++ for my computer. you mean only if I install Microsoft visual c++ 14.0 on my PC the problem will get fixed? if that's it, what a big one I owe you!! I'll keep in touch with you and talk some detail with you. Besides that,you know what,I'm in dire need one part of your code to prove my viewpoint is right.
ERROR: Command errored out with exit status 1: 'C:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-req-build-k0ajgttw\setup.py'"'"'; file='"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-req-build-k0ajgttw\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\NATURE~1\AppData\Local\Temp\pip-record-nwdsyzri\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
It seems you didn't install the lapacke package.
hey I'm very fond and appreciate or even admire your repository.But when I tried to clone this project to my laptop, I ran into many problems. And I still didn't find a way to fix it.GOD WHO can help me out. below is the error message: (base) C:\Users\NATURE&SCIENCE>pip install --user libact Collecting libact Using cached https://files.pythonhosted.org/packages/4b/8c/1f57cbe9e6b647afa14f8446c20caa2343fa26153be179e5a89060cd6ec2/libact-0.1.6.tar.gz Requirement already satisfied: setuptools in c:\anaconda\lib\site-packages (from libact) (41.4.0) Requirement already satisfied: numpy in c:\anaconda\lib\site-packages (from libact) (1.16.5) Requirement already satisfied: scipy in c:\anaconda\lib\site-packages (from libact) (1.4.1) Requirement already satisfied: scikit-learn<=0.19.2 in c:\users\nature&science\appdata\roaming\python\python37\site-packages (from libact) (0.19.2) Requirement already satisfied: matplotlib in c:\anaconda\lib\site-packages (from libact) (3.1.1) Requirement already satisfied: Cython in c:\anaconda\lib\site-packages (from libact) (0.29.13) Requirement already satisfied: joblib in c:\anaconda\lib\site-packages (from libact) (0.13.2) Requirement already satisfied: cycler>=0.10 in c:\anaconda\lib\site-packages (from matplotlib->libact) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\anaconda\lib\site-packages (from matplotlib->libact) (1.1.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\anaconda\lib\site-packages (from matplotlib->libact) (2.4.2) Requirement already satisfied: python-dateutil>=2.1 in c:\anaconda\lib\site-packages (from matplotlib->libact) (2.8.0) Requirement already satisfied: six in c:\anaconda\lib\site-packages (from cycler>=0.10->matplotlib->libact) (1.12.0) Building wheels for collected packages: libact Building wheel for libact (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\setup.py'"'"'; file='"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\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\NATURE~1\AppData\Local\Temp\pip-wheel-gryvw9fu' --python-tag cp37 cwd: C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\ Complete output (58 lines): Platform Detection: Linux. Link to liblapacke... Build VarianceReduction... Build HintSVM... running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\libact copying libact__init.py -> build\lib.win-amd64-3.7\libact creating build\lib.win-amd64-3.7\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-3.7\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-3.7\libact\base copying libact\base__init.py -> build\lib.win-amd64-3.7\libact\base creating build\lib.win-amd64-3.7\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\svm.py -> build\lib.win-amd64-3.7\libact\models copying libact\models__init.py -> build\lib.win-amd64-3.7\libact\models creating build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel__init.py -> build\lib.win-amd64-3.7\libact\models\multilabel creating build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\init__.py -> build\lib.win-amd64-3.7\libact\labelers creating build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\init__.py -> build\lib.win-amd64-3.7\libact\query_strategies creating build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\init.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel creating build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\init__.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass creating build\lib.win-amd64-3.7\libact\utils copying libact\utils\init__.py -> build\lib.win-amd64-3.7\libact\utils running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'libact.query_strategies._variance_reduction' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
ERROR: 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 ERROR: Command errored out with exit status 1: command: 'C:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\setup.py'"'"'; file='"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\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\NATURE~1\AppData\Local\Temp\pip-record-i90krv5h\install-record.txt' --single-version-externally-managed --compile --user --prefix= cwd: C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\ Complete output (58 lines): Platform Detection: Linux. Link to liblapacke... Build VarianceReduction... Build HintSVM... running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\libact copying libact__init.py -> build\lib.win-amd64-3.7\libact creating build\lib.win-amd64-3.7\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-3.7\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-3.7\libact\base copying libact\base__init.py -> build\lib.win-amd64-3.7\libact\base creating build\lib.win-amd64-3.7\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.7\libact\models copying libact\models\svm.py -> build\lib.win-amd64-3.7\libact\models copying libact\models__init.py -> build\lib.win-amd64-3.7\libact\models creating build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.7\libact\models\multilabel copying libact\models\multilabel__init.py -> build\lib.win-amd64-3.7\libact\models\multilabel creating build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.7\libact\labelers copying libact\labelers\init__.py -> build\lib.win-amd64-3.7\libact\labelers creating build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies copying libact\query_strategies\init__.py -> build\lib.win-amd64-3.7\libact\query_strategies creating build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\init.py -> build\lib.win-amd64-3.7\libact\query_strategies\multilabel creating build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\init__.py -> build\lib.win-amd64-3.7\libact\query_strategies\multiclass creating build\lib.win-amd64-3.7\libact\utils copying libact\utils\init__.py -> build\lib.win-amd64-3.7\libact\utils running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'libact.query_strategies._variance_reduction' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
ERROR: Command errored out with exit status 1: 'C:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\setup.py'"'"'; file='"'"'C:\Users\NATURE~1\AppData\Local\Temp\pip-install-6mmys4jb\libact\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\NATURE~1\AppData\Local\Temp\pip-record-i90krv5h\install-record.txt' --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.