× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\myy\AppData\Local\Temp\pip-install-b7dcmfhu\azure-storage_f3ad491fda9f4dff88388d9fe926a6f4\setup.py", line 55, in
raise RuntimeError(message)
RuntimeError:
Starting with v0.37.0, the 'azure-storage' meta-package is deprecated and cannot be installed anymore.
Please install the service specific packages prefixed by `azure` needed for your application.
The complete list of available packages can be found at:
https://aka.ms/azsdk/python/all
Here's a non-exhaustive list of common packages:
- [azure-storage-blob](https://pypi.org/project/azure-storage-blob) : Blob storage client
- [azure-storage-file-share](https://pypi.org/project/azure-storage-file-share) : Storage file share client
- [azure-storage-file-datalake](https://pypi.org/project/azure-storage-file-datalake) : ADLS Gen2 client
- [azure-storage-queue](https://pypi.org/project/azure-storage-queue): Queue storage client
[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
用 GPT-4问了下:
看起来您正在尝试安装已弃用的 azure-storage 软件包,该软件包不再受支持。相反,您应该根据需要安装适当的软件包。根据错误消息,一些常见的替代方案包括:
azure-storage-blob:Blob 存储客户端 azure-storage-file-share:存储文件共享客户端 azure-storage-file-datalake:ADLS Gen2 客户端 azure-storage-queue:队列存储客户端 首先,请根据您的需求选择合适的软件包。然后,在 requirements.txt 文件中用所选软件包替换 azure_storage==0.37.0。例如,如果您需要 Blob 存储客户端,请将其替换为 azure-storage-blob。
完成后,重新运行 pip3 install -r requirements.txt 以安装新的依赖项。
ai\EX-chatGPT> pip3 install -r requirements.txt Collecting azure_storage==0.37.0 Downloading azure-storage-0.37.0.zip (4.3 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "", line 2, in
File "", line 34, in
File "C:\Users\myy\AppData\Local\Temp\pip-install-b7dcmfhu\azure-storage_f3ad491fda9f4dff88388d9fe926a6f4\setup.py", line 55, in
raise RuntimeError(message)
RuntimeError:
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