前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >python3.7 安装alipay-sdk-python(PyCrypto)

python3.7 安装alipay-sdk-python(PyCrypto)

作者头像
obaby
发布2023-02-24 15:36:13
6320
发布2023-02-24 15:36:13
举报
文章被收录于专栏:obaby@mars

安装vs相关工具之后继续报错:

代码语言:javascript
复制
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building ‘Crypto.Random.OSRNG.winrandom‘ extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/ -Isrc/inc-msvc/ -IC:\Python36\include -IC:\Python36\include
winrand.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(26): error C2061: syntax error: identifier ‘intmax_t‘
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27): error C2061: syntax error: identifier ‘rem‘
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27): error C2059: syntax error: ‘;‘
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(28): error C2059: syntax error: ‘}‘
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30): error C2061: syntax error: identifier ‘imaxdiv_t‘
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30): error C2059: syntax error: ‘;‘

为了解决这个问题需要按照下面的步骤进行处理:

1.添加用户环境变量

  1. 重新运行cmd,激活virtual-env,执行
代码语言:javascript
复制
set CL=/FI"%VCINSTALLDIR%\\INCLUDE\\stdint.h" %CL%

然后再次安装即可。

注意不需要在pycharm中进行安装,会失败!注意不需要在pycharm中进行安装,会失败!注意不需要在pycharm中进行安装,会失败!

☆文章版权声明☆

* 网站名称:obaby@mars

* 网址:https://h4ck.org.cn/

* 本文标题: 《python3.7 安装alipay-sdk-python(PyCrypto)》

* 本文链接:https://h4ck.org.cn/2020/03/python3-7-%e5%ae%89%e8%a3%85alipay-sdk-pythonpycrypto/

* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


分享文章:

相关文章:

  1. PyDbg安装(《Python 灰帽子》)
  2. IDA python.plw: can’t load file
  3. IDA批量模式 Python Script[fix]
  4. Python tools for VS2012
  5. Python ByteCode(opcode) & HexCode
  6. Hacking Secret Ciphers with Python
  7. Spyder –the Scientific PYthon Development EnviRonment
  8. Win10 Tensorflow-gpu 不完全安装手册
  9. 蛋疼的Visual Studio2012 驱动模板创建的工程竟然无法编译
  10. Android APK installer for Windows/Linux/Mac OSX
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020年3月18日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 相关文章:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档