volcengine / volc-sdk-python

Apache License 2.0
110 stars 23 forks source link

python3.11以后lz4a无法安装 #15

Open Pengfei00 opened 1 year ago

Pengfei00 commented 1 year ago

该库太老了 要不换个依赖?比如 lz4 ?

wsgzao commented 1 year ago
Installing collected packages: lz4a, soupsieve, pycryptodome, py, protobuf, decorator, retry, beautifulsoup4, google, volcengine
  DEPRECATION: lz4a is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for lz4a ... error
  error: subprocess-exited-with-error

  × Running setup.py install for lz4a did not run successfully.

# Python 3.11后的版本以下命令无效
pip install lz4a --use-pep517

# 有效的解决方案是
pyenv install 3.10
pyenv global 3.10.10
# pip install volcengine-python-sdk
pip install --user volcengine