You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install pycryptdomex but can't seem to do so. I don't think it's a problem with pip, per se.
I'm on a Windows 10 22H2 system, using MSYS2 as a package manager for number of things but with regards to python, solely and only for the base python installation, version 3.11.6. I had just done a fresh install with no other packages being managed by MSYS2's pacman, because I was having still the same trouble with installing the package beforehand as I am still now. All that is is pacman -Su mingw-w64-ucrt-x86_64-python
# pip list
Package Version
---------- -------
pip 23.3.1
setuptools 69.0.2
wheel 0.41.3
Now, I've tried running the usual pip install command for this package in both MSYS2 bash (ucrt64.exe environment specifically but this shouldn't matter), and in Powershell through importing the whole of my ucrt64/bin
# pip install pycryptodomex
Collecting pycryptodomex
Using cached pycryptodomex-3.19.0.tar.gz (4.8 MB)
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
╰─> [32 lines of output]
Testing support for clang
Traceback (most recent call last):
File "C:/Env/MSYS2/ucrt64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <
module>
main()
File "C:/Env/MSYS2/ucrt64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in m
ain
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/ucrt64/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in g
et_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/tmp/pip-build-env-lbcb43dn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get
_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/tmp/pip-build-env-lbcb43dn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _ge
t_build_requires
self.run_setup()
File "C:/Env/MSYS2/tmp/pip-build-env-lbcb43dn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run
_setup
exec(code, locals())
File "<string>", line 490, in <module>
File "C:/Env/MSYS2/tmp/pip-install-edide062/pycryptodomex_0b1b3b8330084fbc93d65996302bd279/compiler_opt.py", line 327, in set_
compiler_options
clang = compiler_is_clang()
^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/tmp/pip-install-edide062/pycryptodomex_0b1b3b8330084fbc93d65996302bd279/compiler_opt.py", line 251, in comp
iler_is_clang
return test_compilation(source, msg="clang")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/tmp/pip-install-edide062/pycryptodomex_0b1b3b8330084fbc93d65996302bd279/compiler_opt.py", line 82, in test_
compilation
objects = compiler.compile([fname], extra_postargs=extra_cc_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Env/MSYS2/tmp/pip-build-env-lbcb43dn/overlay/lib/python3.11/site-packages/setuptools/_distutils/_msvccompiler.py", li
ne 343, in compile
self.initialize()
File "C:/Env/MSYS2/tmp/pip-build-env-lbcb43dn/overlay/lib/python3.11/site-packages/setuptools/_distutils/_msvccompiler.py", li
ne 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: 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.
Running # pip install pycryptodome gets the exact same results/output.
I've only really been having a problem getting this package specifically installed. I can, for example, pip install gcalcli or pip install pyinstaller and have no problems getting those installed with their dependencies. I've looked around on discussions and the install.rst in the source's top-level directory, and I already have the Microsoft Visual C++ 2015 Redistributable Update 3 RC that was mentioned in that file installed. I'm a bit stumped on where to go forward from here. Ultimately, I'm just trying to get yt-dlp installed through pip and I'd like to avoid using the --no-dependencies switch.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to install pycryptdomex but can't seem to do so. I don't think it's a problem with pip, per se.
I'm on a Windows 10 22H2 system, using MSYS2 as a package manager for number of things but with regards to python, solely and only for the base python installation, version 3.11.6. I had just done a fresh install with no other packages being managed by MSYS2's pacman, because I was having still the same trouble with installing the package beforehand as I am still now. All that is is
pacman -Su mingw-w64-ucrt-x86_64-python
I ran the usual to get myself started, barebones.
So I have the following package list.
Now, I've tried running the usual pip install command for this package in both MSYS2 bash (ucrt64.exe environment specifically but this shouldn't matter), and in Powershell through importing the whole of my ucrt64/bin
Running
# pip install pycryptodome
gets the exact same results/output.I've only really been having a problem getting this package specifically installed. I can, for example,
pip install gcalcli
orpip install pyinstaller
and have no problems getting those installed with their dependencies. I've looked around on discussions and the install.rst in the source's top-level directory, and I already have the Microsoft Visual C++ 2015 Redistributable Update 3 RC that was mentioned in that file installed. I'm a bit stumped on where to go forward from here. Ultimately, I'm just trying to get yt-dlp installed through pip and I'd like to avoid using the --no-dependencies switch.Beta Was this translation helpful? Give feedback.
All reactions