Pip install pyOpenSSL. Fails. Getting requirements ... build wheel (original) (raw)
Windows 10. C++ 14.42.34438.0 Python 3.14.0a7
CoPilot has come up with suggestions why the installation in Py of a component called Selenium fails. Early on amongst the suggestions comes the pyOpenSSL. This installation fails for precisely the same reason as is the case with Selenium.
Below I include the entire log from Python which concludes I have not installed the C++. This cannot be correct, because it is indeed installed.
I installed the Python code recently, and that is the case with C++ as well.
There are discussions of this “wheel” here and there. None has helped me to find the answer. Hopefully some of you could help me.
Regards,
ChG
gustaf4711 (Christer Gustafsson) May 2, 2025, 8:22am 2
Forgot the log:
e:\proj\listings>echo %path%
E:\proj\batlib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;F:\sys\TexLive\2025\bin\Windows;F:/sys/Python/Scripts
e:\proj\listings>err
e:\proj\listings>f:\sys\Python\python.exe -m pip install pyOpenSSL
Collecting pyOpenSSL
Using cached pyOpenSSL-25.0.0-py3-none-any.whl.metadata (16 kB)
Collecting cryptography<45,>=41.0.5 (from pyOpenSSL)
Using cached cryptography-44.0.2-cp39-abi3-win_amd64.whl.metadata (5.7 kB)
Collecting cffi>=1.12 (from cryptography<45,>=41.0.5->pyOpenSSL)
Using cached cffi-1.17.1.tar.gz (516 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
¦ exit code: 1
?-> [36 lines of output]
Traceback (most recent call last):
File "f:\sys\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
~~~~^^
File "f:\sys\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "f:\sys\Python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 126, in <module>
File "<string>", line 105, in uses_msvc
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 213, in try_compile
self._compile(body, headers, include_dirs, lang)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 129, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 384, in compile
self.initialize()
~~~~~~~~~~~~~~~^^
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 294, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\gusta\AppData\Local\Temp\pip-build-env-z65j3moh\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 155, in _get_vc_env
raise DistutilsPlatformError(
...<3 lines>...
)
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: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
¦ exit code: 1
?-> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
e:\proj\listings>
barry-scott (Barry Scott) May 2, 2025, 9:21am 3
Building pyOpenSSL is complex. It use C/C++ and Rust.
You will need to install all the compilers and build any dependencies that it needs.
If this is outside your skills then I suggest you wait for the maintainer to do the work.
Liley not before the 3.14 beta is out.
gustaf4711 (Christer Gustafsson) May 2, 2025, 10:45am 4
Barry,
Definitely outside my skills .
Could you propose a stable version of the Python system (a couple of years ago), where this works? If so, please tell with which Microsoft version of C++ is required.
barry-scott (Barry Scott) May 2, 2025, 12:12pm 5
Did you realise that 3.14 has not been released yet?
It is the development alpha version you where using.
The latest stable python in 3.13.
The information on supported python versions for a package are shown on the PyPI page for the package. Usually a web search for “pypi _package-name_” finds the page.