Issue
I am using Spyder and I am running the following code:
import pandas
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)
But this is giving me the following error:
ImportError: Install adlfs to access Azure Datalake Gen2 and Azure Blob Storage
So I opened Anaconda Prompt as administrator and typed:
Conda install adlfs
I received the following error:
(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.
Solution
In your conda prompt, you'll want to use:
python -m pip install adlfs
Answered By - C.Nivs
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.