简体   繁体   中英

Install library backtrader Python in error

Good morning. I installed backtrader on windows via cmd prompt like this: pip3 install backtrader

but from Spyder Anaconda when I write import backtrader as bt, it returns me: ModuleNotFoundError: No module named 'backtrader' can anyone help me? thanks

Found your answer !pip install backtrader

try to run the following in your root folder where your script is:

pip install backtrader -t . 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM