Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors say that the installation of cffi package failed because Microsoft Visual C++ 14.0 or greater is required. It also suggests to get it with “Microsoft C++ Build Tools” from the given link. #14

Open
us254 opened this issue Apr 16, 2023 · 0 comments

Comments

@us254
Copy link

us254 commented Apr 16, 2023

'''
pip install -r ./requirements.txt
Collecting aiohttp
Using cached aiohttp-3.8.4.tar.gz (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting cryptography
Using cached cryptography-40.0.2-cp36-abi3-win_amd64.whl (2.6 MB)
Collecting pycryptodome
Using cached pycryptodome-3.17-cp35-abi3-win_amd64.whl (1.7 MB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting attrs>=17.3.0
Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4.0,>=2.0
Using cached charset_normalizer-3.1.0-py3-none-any.whl (46 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.4.tar.gz (51 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.2.tar.gz (172 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.3.tar.gz (66 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting cffi>=1.12
Using cached cffi-1.15.1.tar.gz (508 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\kk\AppData\Local\Temp\pip-install-2rhlhayi\cffi_abe8474283804a65a11c42dae1f8f074\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
^^^^^^^^^^^
File "C:\Users\kk\AppData\Local\Temp\pip-install-2rhlhayi\cffi_abe8474283804a65a11c42dae1f8f074\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_distutils\command\config.py", line 224, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_distutils\command\config.py", line 129, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_distutils_msvccompiler.py", line 344, in compile
self.initialize()
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_distutils_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kk\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
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.

[notice] A new release of pip is available: 23.0.1 -> 23.1
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Users\kk\Downloads\ss-cloud-scanner-main\w>

'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant