简体   繁体   English

在 python 3.7 中安装 Pyscard

[英]Install Pyscard in python 3.7

How to install pyscard on python 3.7?如何在 python 3.7 上安装pyscard

Are there other modules for smart card readers in python 3.7? python 3.7 中是否还有其他用于智能卡读卡器的模块?

the error after:之后的错误:

pip install pyscard : pip install pyscard

    ERROR: Command errored out with exit status 1:

     command: 'c:\allinone\portableapps\python374\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\E4B6~1\\AppData\\Local\\Temp\\pip-install-rgx51osl\\pyscard\\setup.py'"'"'; __file__='"'"'C:\\Users\\E4B6~1\\AppData\\Local\\Temp\\pip-install-rgx51osl\\pyscard\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\E4B6~1\AppData\Local\Temp\pip-record-o8_63h_7\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\E4B6~1\AppData\Local\Temp\pip-install-rgx51osl\pyscard\
    Complete output (8 lines):
    running install
    running build
    running build_py
    running build_ext
    building 'smartcard.scard._scard' extension
    swigging smartcard/scard/scard.i to smartcard/scard/scard_wrap.c
    swig.exe -python -outdir smartcard/scard -DWIN32 -o smartcard/scard/scard_wrap.c smartcard/scard/scard.i
    error: command 'swig.exe' failed: No such file or directory


ERROR: Command errored out with exit status 1: 'c:\allinone\portableapps\python374\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\E4B6~1\\AppData\\Local\\Temp\\pip-install-rgx51osl\\pyscard\\setup.py'"'"'; __file__='"'"'C:\\Users\\E4B6~1\\AppData\\Local\\Temp\\pip-install-rgx51osl\\pyscard\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\E4B6~1\AppData\Local\Temp\pip-record-o8_63h_7\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

Download swig, latest version.下载 swig,最新版本。 Unzip it in a folder like C:\python\Swig and add that folder to your PATH .将其解压缩到C:\python\Swig之类的文件夹中,然后将该文件夹添加到您的PATH中。 Download and install VCPP express from Microsoft, if you don't have.如果没有,请从 Microsoft 下载并安装 VCPP express。 Then try:然后尝试:

pip install pyscard

just download http://www.swig.org/download.html只需下载http://www.swig.org/download.html

SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM