Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows下如何安装? #4

Open
sqs404 opened this issue Sep 21, 2023 · 4 comments
Open

windows下如何安装? #4

sqs404 opened this issue Sep 21, 2023 · 4 comments

Comments

@sqs404
Copy link

sqs404 commented Sep 21, 2023

已经安装gmssl,cmd可使用,但写代码时仍提示找不到动态库

@guanzhi
Copy link
Member

guanzhi commented Oct 12, 2023

在Windows下可以使用pip安装最新2.2.2版本 py -m pip install gmssl-python

在Python环境下检查系统中是否能够找到GmSSL动态库

>>> from ctypes.util import *
>>> lib = find_library('gmssl')
>>> lib
'C:\\Program Files\\GmSSL\\bin\\gmssl.dll'
>>>

@Tthvic
Copy link

Tthvic commented May 1, 2024

a266e50af37d7e60d9583aea47b647d1
d234d7d0d91bb2caa8fc808f832fd429
可以找到动态库但是依然报错该怎么解决?

@cn010
Copy link

cn010 commented Dec 8, 2024

遇到相同的问题,安装于C或D盘也不行,测试了python3.8,3.12问题一样。

@cn010
Copy link

cn010 commented Dec 8, 2024

安装GmSSL-3.1.1-win64安装包,在其目录bin下仅有gmssl.dll一个动态链接库文件,使用gmssl-pytrhon,导入gmssl时,报错:FileNotFoundError: Could not find module…… 安装路径/gmssl.dll。一直以为是gmssl.dll或者python调用dll机制出了问题,后查询python的ctypes文档,才意识到是gmssl.dll依赖的其他dll文件确实导致。后使用第三方基于GmSSL-3.1.1编译的windows动态链接库(其目录下包含gmssl.dll、sdf_dummy.dll、skf_dummy.dll)才解决问题。建议修复该问题,若是GmSSL-3.1.1-win64安装包不支持直接使用,建议显著说明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants