Reputation: 49
I have installed DataLoader using pip, but could not able to import it in the python script.
Code
import dataloader
Error
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import dataloader
File "C:\Users\anand.nataraj\AppData\Local\Programs\Python\Python37\lib\site-packages\dataloader\__init__.py", line 1, in <module>
from dataloader import read_data_sets
ImportError: cannot import name 'read_data_sets' from 'dataloader' (C:\Users\anand.nataraj\AppData\Local\Programs\Python\Python37\lib\site-packages\dataloader\__init__.py)
As mentioned below dataloader is installed successfully:
python -m pip install dataloader
Requirement already satisfied: dataloader in c:\users\anand.nataraj\appdata\local\programs\python\python37\lib\site-packages (2.0)
But throwing the error shown above while importing in the script.
Upvotes: 1
Views: 3355
Reputation: 105
If you are using Pycharm to run your code you need to adjust the python interpreter under Setting> Project interpreter. Check this link for the documentation.
Upvotes: 0
Reputation: 626
The package/library is broken.
I have yet to find a decent description of what this library does documented anywhere. Checking https://pypi.org/project/dataloader/#description doesn't help and the fact that latest release was in 2016, I would suggest finding another library that suits your requirements.
Upvotes: 1