pip subprocess to install build dependencies did not run successfull
Problem description
Collecting beautifulsoup4==4.9.1 (from -r requirements.txt (line 1)) Using cached beautifulsoup4-4.9.1-py3-none-any.whl.metadata (4.1 kB) Collecting cffi==1.14.0 (from -r requirements.txt (line 2)) Using cached cffi-1.14.0.tar.gz (463 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\dhars\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\msvc.py", line 190, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
That is a very old beautifulsoup which pins a very old version of cffi that didn’t provide binaries for 3.9 (since it predates Python 3.9). Please use a newer beautifulsoup for Python 3.9 or newer.
Henry's advice is correct. Closing as this does not need to be tracked.