【已完成】阿里云 oss 出错了
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:2024-09-05 09:49:59 - Linux面板9.2.0阿里云OSS-6.8系统版本:系统:CentOS 8.5.2111 x86_64(Py3.7.4)
问题描述:打开阿里云 OSS 管理报错了,然后自动备份找不到 oss2.headers 模块
相关截图(日志、错误):
本帖最后由 堡塔开发标 于 2024-9-13 11:55 编辑
终端执行 /www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip,然后执行/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade setuptools wheel ,
最后执行btpip install oss2==2.18.3
您好,centos官方停止了对centos 7/8的维护了,建议是更换操作系统
您这个报错是您机器缺少这个模块 终端执行 btpip install oss2==2.18.3 试试 宝塔用户_lkntyy 发表于 2024-9-11 16:17
终端执行 btpip install oss2==2.18.3 试试
➜~btpip install oss2==2.18.3
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting oss2==2.18.3
Downloading https://mirrors.aliyun.com/pypi/packages/b2/9c/a16e0d92ccef9ee31f5c1ae2a96d5502bbed94eae554c31c77e07c018920/oss2-2.18.3.tar.gz (276 kB)
|████████████████████████████████| 276 kB 69.1 MB/s
ERROR: Command errored out with exit status 1:
command: /www/server/panel/pyenv/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv = '"'"'/tmp/pip-install-npp2a8xx/oss2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-npp2a8xx/oss2/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 /tmp/pip-install-npp2a8xx/oss2/pip-egg-info
cwd: /tmp/pip-install-npp2a8xx/oss2/
Complete output (34 lines):
/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'index-url' will not be supported in future
versions. Please use the underscore name 'index_url' instead.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-npp2a8xx/oss2/setup.py", line 53, in <module>
'Programming Language :: Python :: 3.8'
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 490, in __init__
for k, v in attrs.items()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
self.finalize_options()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 924, in finalize_options
for ep in sorted(loaded, key=by_order):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/dist.py", line 923, in <lambda>
loaded = map(lambda e: e.load(), filtered)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 210, in load
return functools.reduce(getattr, attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 24.0 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
➜~
安装报这个错误要怎么处理 宝塔用户_lkntyy 发表于 2024-9-11 17:45
终端执行 /www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip
ok 原来是 pip 版本不对导致安装不上的啊成功安装了这个 oss2 了 谢谢 麻烦管理员关闭一下这个帖子 已经解决了 问题解决已闭贴
页:
[1]