erykml/Python-for-Finance-Cookbook-2E

cannot install requirements.txt

youngsoul opened this issue · 2 comments

I am having a great deal of difficulty installing the requirements in requirements.txt.

I am using Python 3.10.7

When trying to install the requirements.txt file I am informed the following packages cannot be found:

  • altair-pandas==0.1.0.dev0 [just does not exist]
  • cctx==1.54.19 [version unavailable, newer version available]
  • dataclasses==0.8 [version unavailable, newer version available]
  • pycaret==3.0.0.rc4 [version unavailable, newer version available]
  • pyfolio==0.9.2+75.g4b901f6 [version unavailable, newer version available]

I ultimately install pip-tools, created a requirements.in without any specified version and then executed:

pip-compile to let pip-tools package pick any combination of package versions that would work. I received error message:

There are incompatible versions in the resolved dependencies:
numba (from -r requirements.in (line 183))
numba>=0.51.2 (from pynndescent==0.5.8->-r requirements.in (line 241))
numba>=0.51 (from pyod==1.0.7->-r requirements.in (line 242))
numba>=0.55 (from sktime==0.15.0->-r requirements.in (line 290))
numba>=0.49 (from umap-learn==0.5.3->-r requirements.in (line 344))
numba>=0.52.0 (from kats==0.2.0->-r requirements.in (line 146))
numba<0.55 (from pycaret==2.3.10->-r requirements.in (line 228))
numba (from shap==0.41.0->-r requirements.in (line 285))

I am not really sure how to get the requirements installed at this moment. Any help or pointers would be appreciated. If I find the solution I will update that there.

Thanks

I also have the same problem. @erykml Can you tell us which python version you've installed? this will help us a lot.

erykml commented

Hi both, sorry for the late reply, I totally missed those messages. For the book, I was using Python 3.9.10. Please le time know if using that version solves the issues!