This is a rather weird problem. I'm on Windows
and using Anaconda
for Python
. There is a financial tool library called TA_lib
(Technical Analysis Library). Since this library is not officially supported, I had to install a whl
version and I got it from here.
After installation I was able to use it. But sometimes, when I start Anaconda
and Spyder
, the import talib command yields "Talib has no functiona as ..."
and I cannot import and use it. When this happens, I follow these steps:
- I close Anaconda and Spyder
- I install the library again through Anaconda prompt (I see requirement already satisfied messge)
- I restart Anaconda and Spyder
If I'm lucky, I can import talib
after first try. If not, I have to repeat these steps for a couple of times. What might be wrong?
EDIT 1:
Now it's not working. Here is the error log:
import pandas as pd
import talib
import numpy as np
Traceback (most recent call last):
File "<ipython-input-2-a3bb601353da>", line 2, in <module>
import talib
File "C:\Users\ismetb\Desktop\AlgoritmikFinans\Classifier 11-12-2018 1830 v2\talib.py", line 90, in <module>
upperband, middleband, lowerband = talib.BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=talib.MA_Type.T3)
AttributeError: module 'talib' has no attribute 'BBANDS'