安装transformers 出现错误:根据python版本选择transformers 版本
pip install transformers
安装 transformers
库时,由于需要安装 safetensors
库的构建依赖(特别是 maturin
),但在下载 maturin
库的过程中出现了读取超时错误,从而导致安装失败。
error: subprocess-exited-with-error
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully