Hi,
In the capstone project (Swing Trading course), I get the following warnings when I import the python packages. Could someone help me in understanding the implications of this. I know I am using Pythno 3.8 (in my local machine), but I was unable to find and install 3.6 version.
Regards,
/home/analog/anaconda3/lib/python3.8/site-packages/pyfolio/pos.py:26: UserWarning: Module "zipline.assets" not found; mutltipliers will not be applied to position notionals.
warnings.warn(
Hi Srinivas,
Please run the below commands in Anaconda prompt:
1. conda create -n py368 python=3.6.8
2. conda activate py368
3. conda install -c conda-forge ta-lib
4. pip install ____ (Install the requisite packages as per ReadMe.pdf)
Doing this you should be able to install Python version 3.6.8. Hope this helps.
Thanks.
Hi Satyapriya,
Thanks for your response. I followed the above steps and was able to install all packages. However, now I am getting the following error. Appreciate if you can help on this.
Regards,
Srinivas
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-1-14f3bde686e8> in <module>
7
8 # Technical analysis library
----> 9 import talib as ta
10
11 # For datetime operations
~/anaconda3/lib/python3.8/site-packages/talib/__init__.py in <module>
50 return wrapper
51
---> 52 from ._ta_lib import (
53 _ta_initialize, _ta_shutdown, MA_Type, __ta_version__,
54 _ta_set_unstable_period as set_unstable_period,
talib/_ta_lib.pyx in init talib._ta_lib()
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
Hi Srinivas,
There seems to be a version mismatch. Can you please check the version of numpy and talib? It should be 1.16.4 and 0.4.17. This can be done by using !pip list command.
Thanks!