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

python 导入问题 (python import issue) #368

Open
KakashiJiyayou opened this issue Dec 3, 2023 · 2 comments
Open

python 导入问题 (python import issue) #368

KakashiJiyayou opened this issue Dec 3, 2023 · 2 comments

Comments

@KakashiJiyayou
Copy link

RAM 用户访问显示错误 :: ImportError: cannot import name 'EnvironmentVariableCredentialsProvider' from 'oss2.credentials' (/home/pai/lib/python3.9/site-packages/oss2/credentials.py)
image

接下来是下面的链接
https://help.aliyun.com/zh/oss/developer-reference/python-configuration-access-credentials?spm=a2c4g.11186623.0.0.72df5839hRbZRT#34467464feqn2
image

RAM用户同时具有OSS_ACEESS_KEY_ID和OSS_ACEESS_KEY_SCRET
image

我犯错误的地方,
我已经设置了access_key_id和access_key_secret

@KakashiJiyayou KakashiJiyayou changed the title Can not import module python 导入问题 (python import issue) Dec 3, 2023
@Zhaopudark
Copy link

我从2.17版本升级到2.18就好了😄

@yz-F
Copy link

yz-F commented Jan 5, 2024

我从2.17版本升级到2.18就好了😄

亲测有效!!

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

3 participants