Closed Leo-Raumann closed 1 year ago
Have you read the documentation at https://github.com/LudovicRousseau/pyscard/blob/master/INSTALL.md#installing-on-windows-from-the-source-distribution ?
Several binary versions for Windows are available from PyPI at https://pypi.org/project/pyscard/#files Unfortunately the version for Python 3.11 is not available.
I was referring to https://github.com/LudovicRousseau/pyscard/blob/master/INSTALL.md#installing-on-windows-from-the-binary-distribution... seems I need to do some homework and understand first, why pip install can be used for both (binary and source distribution).
pip install
will try to install a pre-build binary if available.
But such a pre-build is not available for Python 3.11 so it tries to build & install from the source code.
PyPi now provides a binary installer for Python 3.11 on Windows since PySCard 2.0.6 released in March 2023.
I had to overcome several errors when trying
pip install pyscard
:... helpers.c smartcard/scard/helpers.c(22): fatal error C1083: Datei (Include) cannot be opened: "windows.h": No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2 [end of output]
Then I installed more from build tools (Windows 10 SDK, c++ Cmake tools, core functions) and finally the installation was successfull.
Please add more installation information for other newcomers like me and thanks for all you work!