WillKoehrsen / Data-Analysis

Data Science Using Python
https://medium.com/@williamkoehrsen/
MIT License
5.12k stars 3.63k forks source link

Data-Analysis/stocker/stocker.py #41

Open Superboysumit opened 5 years ago

Superboysumit commented 5 years ago

from stocker import Stocker


ImportError Traceback (most recent call last)

in ----> 1 from stocker import Stocker ImportError: cannot import name 'Stocker' from 'stocker' (C:\Users\SHIVSHAKTI\stocker.py) please help with this issue why I cannot import ??
kevb10 commented 5 years ago

where are you importing it from?

franckvallee commented 4 years ago

Same problem with Python 3.7.4 (Anaconda) pip install stocker worked fine but cannot execute from stocker import Stocker ==> ImportError: cannot import name 'Stocker' from 'stocker' (C:\PROGRAMS\Python\Python37\lib\site-packages\stocker__init__.py)

Indeed not an issue anymore, just a name colliding with another module called stocker here: => https://github.com/jcamiloangarita/stocker

mehrdad021021 commented 4 years ago

try pip install stocker on anaconda prompt. not in cmd that work ;)

williamsin9g commented 3 years ago

same issue here, ImportError: cannot import name 'Stocker' from 'stocker' (unknown location)