WillKoehrsen / Data-Analysis

Data Science Using Python

Home Page:https://medium.com/@williamkoehrsen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data-Analysis/stocker/stocker.py

Superboysumit opened this issue · comments

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 ??

where are you importing it from?

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

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

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