Open michaelstacy1111 opened 5 years ago
This happened to me as well.
First, make sure you have installed all the packages. Try using pip3 instead, try sudo, try both.
Next, create a Jupyter notebook or .py script in the same directory as the stocker.py file. You must must must have the stocker.py file in the same exact directory as the code!!!!
Hope this helps. Happy coding!
Hello! I'm having a similar issue. I'm running spyder (python 3.7) Anaconda I've installed all the packages and the mycode.py file is in the same directory as the stocker.py file.
INPUT: from stocker import stocker
microsoft = stocker(ticker='MSFT') techm = stocker(ticker='TECHM', exchange='NSE')
RESULT: runfile('C:/Users/Joshua/Anaconda3/Lib/site-packages/stocker/stock_prediction.py', wdir='C:/Users/Joshua/Anaconda3/Lib/site-packages/stocker') Traceback (most recent call last):
File "C:\Users\Joshua\Anaconda3\Lib\site-packages\stocker\stock_prediction.py", line 16, in
TypeError: 'module' object is not callable
ModuleNotFoundError Traceback (most recent call last)