- ➜ ~ 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[0] = '"'"'/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.
- ➜ ~
复制代码
安装报这个错误要怎么处理 |