NicolasHug / Surprise

A Python scikit for building and analyzing recommender systems
http://surpriselib.com
BSD 3-Clause "New" or "Revised" License
6.34k stars 1.01k forks source link

How can I solve this problem #395

Open auggieyd opened 3 years ago

auggieyd commented 3 years ago

Using cached scikit-surprise-1.1.1.tar.gz (11.8 MB) Requirement already satisfied: joblib>=0.11 in e:\python\pyhton38\lib\site-packages (from scikit-surprise) (0.14.1) Requirement already satisfied: numpy>=1.11.2 in e:\python\pyhton38\lib\site-packages (from scikit-surprise) (1.18.1) Requirement already satisfied: scipy>=1.0.0 in e:\python\pyhton38\lib\site-packages (from scikit-surprise) (1.4.1) Requirement already satisfied: six>=1.10.0 in e:\python\pyhton38\lib\site-packages (from scikit-surprise) (1.14.0) Building wheels for collected packages: scikit-surprise Building wheel for scikit-surprise (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'e:\python\pyhton38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"'; file='"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rothy\AppData\Local\Temp\pip-wheel-24mwb890' cwd: C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\ Complete output (56 lines): e:\python\pyhton38\lib\site-packages\setuptools\dist.py:691: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\surprise copying surprise\accuracy.py -> build\lib.win-amd64-3.8\surprise copying surprise\builtin_datasets.py -> build\lib.win-amd64-3.8\surprise copying surprise\dataset.py -> build\lib.win-amd64-3.8\surprise copying surprise\dump.py -> build\lib.win-amd64-3.8\surprise copying surprise\reader.py -> build\lib.win-amd64-3.8\surprise copying surprise\trainset.py -> build\lib.win-amd64-3.8\surprise copying surprise\utils.py -> build\lib.win-amd64-3.8\surprise copying surprise__init.py -> build\lib.win-amd64-3.8\surprise copying surprise\main.py -> build\lib.win-amd64-3.8\surprise creating build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\search.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\split.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\validation.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\init.py -> build\lib.win-amd64-3.8\surprise\model_selection creating build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\algo_base.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\baseline_only.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\knns.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\predictions.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\random_pred.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\init__.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms running egg_info writing scikit_surprise.egg-info\PKG-INFO writing dependency_links to scikit_surprise.egg-info\dependency_links.txt writing entry points to scikit_surprise.egg-info\entry_points.txt writing requirements to scikit_surprise.egg-info\requires.txt writing top-level names to scikit_surprise.egg-info\top_level.txt reading manifest file 'scikit_surprise.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.md' writing manifest file 'scikit_surprise.egg-info\SOURCES.txt' copying surprise\similarities.c -> build\lib.win-amd64-3.8\surprise copying surprise\similarities.pyx -> build\lib.win-amd64-3.8\surprise copying surprise\prediction_algorithms\co_clustering.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\matrix_factorization.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\optimize_baselines.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\slope_one.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\co_clustering.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\matrix_factorization.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\optimize_baselines.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\slope_one.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms running build_ext building 'surprise.similarities' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\surprise cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\python\pyhton38\lib\site-packages\numpy\core\include -Ie:\python\pyhton38\include -Ie:\python\pyhton38\include /Tcsurprise/similarities.c /Fobuild\temp.win-amd64-3.8\Release\surprise/similarities.obj error: command 'cl.exe' failed: No such file or directory

ERROR: Failed building wheel for scikit-surprise Running setup.py clean for scikit-surprise Failed to build scikit-surprise Installing collected packages: scikit-surprise Running setup.py install for scikit-surprise ... error ERROR: Command errored out with exit status 1: command: 'e:\python\pyhton38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"'; file='"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rothy\AppData\Local\Temp\pip-record-aeofrt0w\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\python\pyhton38\Include\scikit-surprise' cwd: C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\ Complete output (56 lines): e:\python\pyhton38\lib\site-packages\setuptools\dist.py:691: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\surprise copying surprise\accuracy.py -> build\lib.win-amd64-3.8\surprise copying surprise\builtin_datasets.py -> build\lib.win-amd64-3.8\surprise copying surprise\dataset.py -> build\lib.win-amd64-3.8\surprise copying surprise\dump.py -> build\lib.win-amd64-3.8\surprise copying surprise\reader.py -> build\lib.win-amd64-3.8\surprise copying surprise\trainset.py -> build\lib.win-amd64-3.8\surprise copying surprise\utils.py -> build\lib.win-amd64-3.8\surprise copying surprise__init.py -> build\lib.win-amd64-3.8\surprise copying surprise\main.py -> build\lib.win-amd64-3.8\surprise creating build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\search.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\split.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\validation.py -> build\lib.win-amd64-3.8\surprise\model_selection copying surprise\model_selection\init.py -> build\lib.win-amd64-3.8\surprise\model_selection creating build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\algo_base.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\baseline_only.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\knns.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\predictions.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\random_pred.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\init__.py -> build\lib.win-amd64-3.8\surprise\prediction_algorithms running egg_info writing scikit_surprise.egg-info\PKG-INFO writing dependency_links to scikit_surprise.egg-info\dependency_links.txt writing entry points to scikit_surprise.egg-info\entry_points.txt writing requirements to scikit_surprise.egg-info\requires.txt writing top-level names to scikit_surprise.egg-info\top_level.txt reading manifest file 'scikit_surprise.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.md' writing manifest file 'scikit_surprise.egg-info\SOURCES.txt' copying surprise\similarities.c -> build\lib.win-amd64-3.8\surprise copying surprise\similarities.pyx -> build\lib.win-amd64-3.8\surprise copying surprise\prediction_algorithms\co_clustering.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\matrix_factorization.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\optimize_baselines.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\slope_one.c -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\co_clustering.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\matrix_factorization.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\optimize_baselines.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms copying surprise\prediction_algorithms\slope_one.pyx -> build\lib.win-amd64-3.8\surprise\prediction_algorithms running build_ext building 'surprise.similarities' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\surprise cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ie:\python\pyhton38\lib\site-packages\numpy\core\include -Ie:\python\pyhton38\include -Ie:\python\pyhton38\include /Tcsurprise/similarities.c /Fobuild\temp.win-amd64-3.8\Release\surprise/similarities.obj error: command 'cl.exe' failed: No such file or directory

ERROR: Command errored out with exit status 1: 'e:\python\pyhton38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"'; file='"'"'C:\Users\rothy\AppData\Local\Temp\pip-install-50hzlyya\scikit-surprise_749617b9781e47b6a6dfc0a88ac3bacf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rothy\AppData\Local\Temp\pip-record-aeofrt0w\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\python\pyhton38\Include\scikit-surprise' Check the logs for full command output.

hhyurdagul commented 3 years ago

Since this library uses C Languages you have to have C compiler installed on your browser.

Look at this thread https://stackoverflow.com/questions/41724445/python-pip-on-windows-command-cl-exe-failed/41724634.