Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I do have

import backtrader as bt

in my seal_1.py file but still getting

ModuleNotFoundError: No module named 'backtrader'

I thought it was the hidden import so I did

pyinstaller -F G:pythonCrypto_BacktestingSealsealed_1.py --hidden-import backtrader

or

pyinstaller -F G:pythonCrypto_BacktestingSealsealed_1.py --hidden-import='backtrader'

nothing worked....need help, Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.9k views
Welcome To Ask or Share your Answers For Others

1 Answer

Try installing it through terminal.

pip install backtrader

If this throws an error then try visiting the official documentation page for this library here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...