Reputation: 11
`Collecting cffi==1.15.1 (from -r requirements.txt (line 45)) 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 ╰─> [16 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\name\AppData\Local\Temp\pip-install-7tvsutzu\cffi_f224d2d0b6b44d45b77aab1b2eb9438b\setup.py", line 126, in if sys.platform == "win32" and uses_msvc(): File "C:\Users\name\AppData\Local\Temp\pip-install-7tvsutzu\cffi_f224d2d0b6b44d45b77aab1b2eb9438b\setup.py", line 105, in uses_msvc return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif') File "C:\name\dir\dirr\venv\lib\python3.10\site-packages\setuptools_distutils\command\config.py", line 223, in try_compile self._compile(body, headers, include_dirs, lang) File "C:\name\dir\dirr\venv\lib\python3.10\site-packages\setuptools_distutils\command\config.py", line 128, in _compile self.compiler.compile([src], include_dirs=include_dirs) File "C:\name\dir\dirr\venv\lib\python3.10\site-packages\setuptools_distutils_msvccompiler.py", line 343, in compile self.initialize() File "C:\name\dir\dirr\venv\lib\python3.10\site-packages\setuptools_distutils_msvccompiler.py", line 246, in initialize raise DistutilsPlatformError( distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64') [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.`
Upvotes: 1
Views: 175