Microsoft Windows Python-3.6 PyCrypto installation error

后端 未结 8 2157
陌清茗
陌清茗 2020-11-29 00:30

pip install pycrypto works fine with python3.5.2 but fails wiht python3.6 with the following error:

inttypes.h(26): error C2061: syntax e

8条回答
  •  孤独总比滥情好
    2020-11-29 01:10

    I've succeeded install pycrypo 2.6.1 on python 3.6 and windows 10.

    1. Set an environment variable like below.
    2. Open cmd.exe
    3. Activate virtualenv
    4. Download pycrypto 2.6.1 release from github and unzip it.
    5. set an environment variable for pycrypto set CL=/FI"%VCINSTALLDIR%\\INCLUDE\\stdint.h" %CL%
    6. Run setup command python setup.py install
    7. my result is here

    I would be glad if this could be help someone.

提交回复
热议问题