Closed sunminkr closed 4 years ago
It seems I forget to add requirements.txt to the manifest
https://github.com/ntucllab/libact/commit/15fb423bb8ed0fc80303699a647ba38c574979f7
You can install from source for now by
pip install git+https://github.com/ntucllab/libact.git
or I wait for me to publish 0.1.5 shortly
I've tried
pip install git+https://github.com/ntucllab/libact.git
but there comes the error message
ERROR: Command "'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;file='"'"'c:\users\admin\appdata\local\temp\pip-req-build-m0g3rc\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\admin\appdata\local\temp\pip-record-w7i0ff\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-req-build-m0g3rc\
Would you please tell me what problem is this?
You are missing the lapacke library
try install this library https://anaconda.org/conda-forge/liblapacke
if you don't need to use hintsvm and variance_reduction try
export LIBACT_BUILD_HINTSVM=0
export LIBACT_BUILD_VARIANCE_REDUCTION=0
pip install git+https://github.com/ntucllab/libact.git
After installing that library, same error occurs again.
it says >> ERROR: Failed building wheel for libact , and also can't find the header file. Should I change the repository?
Whole codes and errors:
`(base) C:\Users\Admin>pip install git+https://github.com/ntucllab/libact.git
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting git+https://github.com/ntucllab/libact.git
Cloning https://github.com/ntucllab/libact.git to c:\users\admin\appdata\local\temp\pip-req-build-1kqeke
Running command git clone -q https://github.com/ntucllab/libact.git 'c:\users\admin\appdata\local\temp\pip-req-build-1kqeke'
Requirement already satisfied: setuptools in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (41.2.0)
Requirement already satisfied: numpy in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (1.16.3)
Requirement already satisfied: scipy in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (1.2.1)
Requirement already satisfied: scikit-learn<=0.19.2 in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.19.2)
Requirement already satisfied: matplotlib in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (2.2.3)
Requirement already satisfied: Cython in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.29.12)
Requirement already satisfied: joblib in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.13.2)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2.4.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2.8.0)
Requirement already satisfied: pytz in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2019.1)
Requirement already satisfied: six>=1.10 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.12.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.1.0)
Requirement already satisfied: backports.functools_lru_cache in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.5)
Building wheels for collected packages: libact
Building wheel for libact (setup.py) ... error
ERROR: Complete output from command 'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-wheel-6ocyaq' --python-tag cp27:
ERROR: 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-2.7
creating build\lib.win-amd64-2.7\libact
copying libact\__init__.py -> build\lib.win-amd64-2.7\libact
creating build\lib.win-amd64-2.7\libact\base
copying libact\base\dataset.py -> build\lib.win-amd64-2.7\libact\base
copying libact\base\interfaces.py -> build\lib.win-amd64-2.7\libact\base
copying libact\base\__init__.py -> build\lib.win-amd64-2.7\libact\base
creating build\lib.win-amd64-2.7\libact\models
copying libact\models\logistic_regression.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\perceptron.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\svm.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\__init__.py -> build\lib.win-amd64-2.7\libact\models
creating build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\models\multilabel
creating build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\__init__.py -> build\lib.win-amd64-2.7\libact\labelers
creating build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\quire.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies
creating build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
creating build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
creating build\lib.win-amd64-2.7\libact\utils
copying libact\utils\__init__.py -> build\lib.win-amd64-2.7\libact\utils
running build_ext
building 'libact.query_strategies._variance_reduction' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\libact
creating build\temp.win-amd64-2.7\Release\libact\query_strategies
creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src
creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src\variance_reduction
C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11
cl : Command line warning D9002 : ignoring unknown option '-std=c11'
variance_reduction.c
libact/query_strategies/src/variance_reduction/variance_reduction.c(5) : fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
error: Command "C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2
----------------------------------------
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: Complete output from command 'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-record-vbz4pv\install-record.txt' --single-version-externally-managed --compile:
ERROR: Platform Detection: Linux. Link to liblapacke...
Build VarianceReduction...
Build HintSVM...
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\libact
copying libact\__init__.py -> build\lib.win-amd64-2.7\libact
creating build\lib.win-amd64-2.7\libact\base
copying libact\base\dataset.py -> build\lib.win-amd64-2.7\libact\base
copying libact\base\interfaces.py -> build\lib.win-amd64-2.7\libact\base
copying libact\base\__init__.py -> build\lib.win-amd64-2.7\libact\base
creating build\lib.win-amd64-2.7\libact\models
copying libact\models\logistic_regression.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\perceptron.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\svm.py -> build\lib.win-amd64-2.7\libact\models
copying libact\models\__init__.py -> build\lib.win-amd64-2.7\libact\models
creating build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-2.7\libact\models\multilabel
copying libact\models\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\models\multilabel
creating build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-2.7\libact\labelers
copying libact\labelers\__init__.py -> build\lib.win-amd64-2.7\libact\labelers
creating build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\quire.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies
copying libact\query_strategies\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies
creating build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel
creating build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass
creating build\lib.win-amd64-2.7\libact\utils
copying libact\utils\__init__.py -> build\lib.win-amd64-2.7\libact\utils
running build_ext
building 'libact.query_strategies._variance_reduction' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\libact
creating build\temp.win-amd64-2.7\Release\libact\query_strategies
creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src
creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src\variance_reduction
C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11
cl : Command line warning D9002 : ignoring unknown option '-std=c11'
variance_reduction.c
libact/query_strategies/src/variance_reduction/variance_reduction.c(5) : fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
error: Command "C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2
----------------------------------------
ERROR: Command "'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-record-vbz4pv\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-req-build-1kqeke\
I am not sure what problem is this. Would you please help me with this
libact/query_strategies/src/variance_reduction/variance_reduction.c(5) : fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
it basically says you didn't have the lapacke library
try install this library https://anaconda.org/conda-forge/liblapacke
After installing that library, same error occurs again.
it says >> ERROR: Failed building wheel for libact , and also can't find the header file. Should I change the repository?
Whole codes and errors:
`(base) C:\Users\Admin>pip install git+https://github.com/ntucllab/libact.git DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Collecting git+https://github.com/ntucllab/libact.git Cloning https://github.com/ntucllab/libact.git to c:\users\admin\appdata\local\temp\pip-req-build-1kqeke Running command git clone -q https://github.com/ntucllab/libact.git 'c:\users\admin\appdata\local\temp\pip-req-build-1kqeke' Requirement already satisfied: setuptools in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (41.2.0) Requirement already satisfied: numpy in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (1.16.3) Requirement already satisfied: scipy in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (1.2.1) Requirement already satisfied: scikit-learn<=0.19.2 in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.19.2) Requirement already satisfied: matplotlib in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (2.2.3) Requirement already satisfied: Cython in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.29.12) Requirement already satisfied: joblib in c:\users\admin\anaconda2\lib\site-packages (from libact==0.1.5) (0.13.2) Requirement already satisfied: cycler>=0.10 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2.4.0) Requirement already satisfied: python-dateutil>=2.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2.8.0) Requirement already satisfied: pytz in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (2019.1) Requirement already satisfied: six>=1.10 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.12.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.1.0) Requirement already satisfied: backports.functools_lru_cache in c:\users\admin\anaconda2\lib\site-packages (from matplotlib->libact==0.1.5) (1.5) Building wheels for collected packages: libact Building wheel for libact (setup.py) ... error ERROR: Complete output from command 'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-wheel-6ocyaq' --python-tag cp27: ERROR: 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-2.7 creating build\lib.win-amd64-2.7\libact copying libact\__init__.py -> build\lib.win-amd64-2.7\libact creating build\lib.win-amd64-2.7\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-2.7\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-2.7\libact\base copying libact\base\__init__.py -> build\lib.win-amd64-2.7\libact\base creating build\lib.win-amd64-2.7\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\svm.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\__init__.py -> build\lib.win-amd64-2.7\libact\models creating build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\models\multilabel creating build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\__init__.py -> build\lib.win-amd64-2.7\libact\labelers creating build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies creating build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel creating build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass creating build\lib.win-amd64-2.7\libact\utils copying libact\utils\__init__.py -> build\lib.win-amd64-2.7\libact\utils running build_ext building 'libact.query_strategies._variance_reduction' extension creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\libact creating build\temp.win-amd64-2.7\Release\libact\query_strategies creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src\variance_reduction C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11 cl : Command line warning D9002 : ignoring unknown option '-std=c11' variance_reduction.c libact/query_strategies/src/variance_reduction/variance_reduction.c(5) : fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory error: Command "C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2 ---------------------------------------- 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: Complete output from command 'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-record-vbz4pv\install-record.txt' --single-version-externally-managed --compile: ERROR: Platform Detection: Linux. Link to liblapacke... Build VarianceReduction... Build HintSVM... running install running build running build_py creating build creating build\lib.win-amd64-2.7 creating build\lib.win-amd64-2.7\libact copying libact\__init__.py -> build\lib.win-amd64-2.7\libact creating build\lib.win-amd64-2.7\libact\base copying libact\base\dataset.py -> build\lib.win-amd64-2.7\libact\base copying libact\base\interfaces.py -> build\lib.win-amd64-2.7\libact\base copying libact\base\__init__.py -> build\lib.win-amd64-2.7\libact\base creating build\lib.win-amd64-2.7\libact\models copying libact\models\logistic_regression.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\perceptron.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\svm.py -> build\lib.win-amd64-2.7\libact\models copying libact\models\__init__.py -> build\lib.win-amd64-2.7\libact\models creating build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-2.7\libact\models\multilabel copying libact\models\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\models\multilabel creating build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-2.7\libact\labelers copying libact\labelers\__init__.py -> build\lib.win-amd64-2.7\libact\labelers creating build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\density_weighted_meta.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\quire.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies copying libact\query_strategies\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies creating build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\cost_sensitive_reference_pair_encoding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel copying libact\query_strategies\multilabel\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multilabel creating build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass copying libact\query_strategies\multiclass\__init__.py -> build\lib.win-amd64-2.7\libact\query_strategies\multiclass creating build\lib.win-amd64-2.7\libact\utils copying libact\utils\__init__.py -> build\lib.win-amd64-2.7\libact\utils running build_ext building 'libact.query_strategies._variance_reduction' extension creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\libact creating build\temp.win-amd64-2.7\Release\libact\query_strategies creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src creating build\temp.win-amd64-2.7\Release\libact\query_strategies\src\variance_reduction C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11 cl : Command line warning D9002 : ignoring unknown option '-std=c11' variance_reduction.c libact/query_strategies/src/variance_reduction/variance_reduction.c(5) : fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory error: Command "C:\Users\Admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\admin\anaconda2\lib\site-packages\numpy\core\include -I/usr/include/ -Ic:\users\admin\anaconda2\include -Ic:\users\admin\anaconda2\PC /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-2.7\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2 ---------------------------------------- ERROR: Command "'c:\users\admin\anaconda2\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\\users\\admin\\appdata\\local\\temp\\pip-req-build-1kqeke\\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\admin\appdata\local\temp\pip-record-vbz4pv\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-req-build-1kqeke\
I am not sure what problem is this. Would you please help me with this
have you fixed the problem yet?
Mixing with #175 and closing this.
I've tried to install libact using anaconda prompt using commands from here "https://pypi.org/project/libact/"
pip install -r requirements.txt >> works well
pip install --user libact >> Have problem It says there are no requirements.txt file in such directory but I couldn't find that directory anywhere.
How could I solve this issue?
This is the full error message: Collecting libact Using cached https://files.pythonhosted.org/packages/9c/cd/3cbdacb569adfbfd4136b9707049f2ef56bf7612ab7c82f53561388c4a24/libact-0.1.4.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Platform Detection: Linux. Link to liblapacke... Build VarianceReduction... Build HintSVM... Compiling libact/query_strategies/_hintsvm.pyx because it depends on C:\Users\Admin\Anaconda2\lib\site-packages\Cython\Includes\numpy__init__.pxd. [1/1] Cythonizing libact/query_strategies/_hintsvm.pyx C:\Users\Admin\Anaconda2\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: c:\users\admin\appdata\local\temp\pip-install-ezgdfc\libact\libact\query_strategies_hintsvm.pxd tree = Parsing.p_module(s, pxd, full_module_name) Traceback (most recent call last): File "", line 1, in
File "c:\users\admin\appdata\local\temp\pip-install-ezgdfc\libact\setup.py", line 71, in
with open('./requirements.txt') as f:
IOError: [Errno 2] No such file or directory: './requirements.txt'
ERROR: Command "python setup.py egg_info" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-install-ezgdfc\libact\