duangy / aliyunsdkcore

阿里短信SDK
Apache License 2.0
26 stars 3 forks source link

python-3.9.0-embed-amd64 用pip安装失败(包括aliyun-python-sdk-core和aliyun-python-sdk-iot) #9

Open ghost opened 3 years ago

ghost commented 3 years ago

pip install aliyunsdkcore Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting aliyunsdkcore Downloading http://mirrors.aliyun.com/pypi/packages/36/80/4fd3153ce15ec7edae283fa937ee1adc0855f980ce248611b2e009d343df/aliyunsdkcore-1.0.3.tar.gz (23 kB)
ERROR: Command errored out with exit status 1:
command: 'd:\python-3.9.0-embed-amd64\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-vc5sofny\aliyunsdkcore_760263d2c4f3402088d9f8592997f656\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-vc5sofny\aliyunsdkcore_760263d2c4f3402088d9f8592997f656\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Admin\AppData\Local\Temp\pip-pip-egg-info-lpu5ujkl'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-vc5sofny\aliyunsdkcore_760263d2c4f3402088d9f8592997f656\
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Admin\AppData\Local\Temp\pip-install-vc5sofny\aliyunsdkcore_760263d2c4f3402088d9f8592997f656\setup.py", line 225, in
VERSION = import(PACKAGE).version
ModuleNotFoundError: No module named 'aliyunsdkcore'


ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

tietang commented 2 months ago

同样的问题:

......\python_embeded\python.exe -s -m pip install aliyun-python-sdk-core-v3 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting aliyun-python-sdk-core-v3 Using cached https://mirrors.aliyun.com/pypi/packages/50/31/bdf3eba750e9d7213248efea30ad29a62f2d449607e03f538d4d9455d952/aliyun-python-sdk-core-v3-2.13.33.tar.gz (440 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\hy\AppData\Local\Temp\pip-install-8h1o9jtn\aliyun-python-sdk-core-v3_b3b53e839d294ab3a6db7c270572cd49\setup.py", line 41, in VERSION = import(PACKAGE).version ^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'aliyunsdkcore' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

duangy commented 2 months ago

@tietang 阿里云python sdk最新文档地址

阿里将sdk接入分为特化调用和泛化调用,特化调用安装地址为:

pip install alibabacloud_dysmsapi20170525==2.0.24,

泛化地址为:

pip install alibabacloud-tea-openapi

tietang commented 2 months ago

同样的问题, python_embeded 环境一样安装不了

Jack-919 commented 2 months ago

阿里云python sdk最新文档地址

阿里将sdk接入分为特化调用和泛化调用,特化调用安装地址为:

pip install alibabacloud_dysmsapi20170525==2.0.24,

泛化地址为:

pip install alibabacloud-tea-openapi这两种方法都不行,现在报错是 ModuleNotFoundError: No module named 'alibabacloud_tea_openapi'

duangy commented 2 months ago

@Jack-919 pypi地址 你看看你的环境和python版本