我正在使用 Spyder 并且运行以下代码:
进口熊猫
storage_options={'account_name': 'bidi', 'account_key': 'xxxxxxxxxxxxxxxxxxx'}
df = pandas.read_csv('abfs://[email protected]/raw/taxi_zone.csv', storage_options=storage_options)
print(df)
但这给了我以下错误:
ImportError: Install adlfs to access Azure Datalake Gen2 and Azure Blob Storage
所以我以管理员身份打开 Anaconda Prompt 并输入:
Conda install adlfs
我收到以下错误:
(base) C:\WINDOWS\system32>conda install adlfs
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- adlfs
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
在 conda 提示符中,您需要使用:
python -m pip install adlfs