Why can't I import pybacktest package?

81 Views Asked by At

I checked the method of importing this package on the Internet, and I also entered the pip command in cmd, but it still cannot be imported. May I ask why?

enter image description here

2

There are 2 best solutions below

0
On

Probably because the kernel of your jupyterhub has not the right environment.

Try to reinstall the package using the terminal of jupyter hub (see new drop box) it will do the trick once you have installed the package and refreshed the kernel.

5
On

Try this on your Jupyter cell:

pip install git+https://github.com/ematvey/pybacktest.git

enter image description here

Link to github https://github.com/ematvey/pybacktest

Edit for your comment:

run the below command on your Jupyter cell.

pip install pandas_datareader