kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.47k stars 635 forks source link

failed install facebook-scraper because microsoft visual c++ #592

Open dwissaaj opened 2 years ago

dwissaaj commented 2 years ago

When i use pip install facebook-scraper I got an error

` Running setup.py install for lz4 ... error ERROR: Command errored out with exit status 1: command: 'D:\Python\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\W I N D O W S\AppData\Local\Temp\pip-install-k2gosvx2\lz4_4ce3e8a4711f44f5836ec8e18cd4944a\setup.py'"'"'; file='"'"'C:\Users\W I N D O W S\AppData\Local\Temp\pip-install-k2gosvx2\lz4_4ce3e8a4711f44f5836ec8e18cd4944a\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\W I N D O W S\AppData\Local\Temp\pip-record-pmavxuma\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Python\Include\lz4' cwd: C:\Users\W I N D O W S\AppData\Local\Temp\pip-install-k2gosvx2\lz4_4ce3e8a4711f44f5836ec8e18cd4944a\ Complete output (20 lines): WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\lz4 copying lz4\version.py -> build\lib.win-amd64-3.9\lz4 copying lz4__init.py -> build\lib.win-amd64-3.9\lz4 creating build\lib.win-amd64-3.9\lz4\block copying lz4\block\init.py -> build\lib.win-amd64-3.9\lz4\block creating build\lib.win-amd64-3.9\lz4\frame copying lz4\frame\init.py -> build\lib.win-amd64-3.9\lz4\frame creating build\lib.win-amd64-3.9\lz4\stream copying lz4\stream\init__.py -> build\lib.win-amd64-3.9\lz4\stream running build_ext building 'lz4._version' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Command errored out with exit status 1: 'D:\Python\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\W I N D O W S\AppData\Local\Temp\pip-install-k2gosvx2\lz4_4ce3e8a4711f44f5836ec8e18cd4944a\setup.py'"'"'; file='"'"'C:\Users\W I N D O W S\AppData\Local\Temp\pip-install-k2gosvx2\lz4_4ce3e8a4711f44f5836ec8e18cd4944a\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\W I N D O W S\AppData\Local\Temp\pip-record-pmavxuma\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Python\Include\lz4' Check the logs for full command output.`

in my control panel it already use Microsoft visual c++ 2015-2022 Redistributable . I am using Pycharm 2021.2.3 and Windows 10

TheMulti0 commented 2 years ago

the package wheel is currently broken on Windows. Install facebook-scraper==0.2.49

neon-ninja commented 2 years ago

Duplicate of https://github.com/kevinzg/facebook-scraper/issues/591