python3.7,dysmsapi版本2.022,
执行下面的导包时出错
from alibabacloud_dysmsapi20170525.client import Client
错误信息:
Traceback (most recent call last):
File "F:\DjangoAPP\web02_shop\common\aliyun_message.py", line 2, in
from alibabacloud_dysmsapi20170525.client import Client
File "F:\DjangoAPP\web02_shop\venv\lib\site-packages\alibabacloud_dysmsapi20170525\client.py", line 6, in
from alibabacloud_tea_openapi.client import Client as OpenApiClient
File "F:\DjangoAPP\web02_shop\venv\lib\site-packages\alibabacloud_tea_openapi\client.py", line 16, in
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
File "F:\DjangoAPP\web02_shop\venv\lib\site-packages\alibabacloud_openapi_util\client.py", line 9, in
from cryptography.hazmat.primitives import hashes
File "F:\DjangoAPP\web02_shop\venv\lib\site-packages\cryptography\hazmat\primitives\hashes.py", line 9, in
from cryptography.hazmat.bindings._rust import openssl as rust_openssl
ImportError: DLL load failed: 找不到指定的程序。
确保你的Python环境干净,没有残留的旧版本包或冲突的包。
升级pip:确保你的pip是最新版本,这有助于避免安装过程中因版本过旧导致的问题。
pip install --upgrade pip
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。