Open Ron-27 opened 2 years ago
@Ron-27 vectorbt doesn't require PyYAML. A bit of googling helps: https://stackoverflow.com/a/69565230
Yes, I saw this thread, but I'm using it with alpaca-trade-api, which uses PyYAML 6. For some reason when installing vectorbt it installs earlier version of PyYAML and won't import if it's an updated version of PyYAML. In summary, I can't use these two libraries together on Google Colab because I get the above error while trying to import vectorbt
@Ron-27
For some reason when installing vectorbt it installs earlier version of PyYAML
vectorbt still use alpaca-trade-api 1.4, that maybe explain why it install earlier version of pyyaml.
I can't use these two libraries together on Google Colab
!pip install dateparser --upgrade
:!pip install alpaca-trade-api>=2.1.0
!pip install vectorbt==0.23.3
!pip install dateparser --upgrade
import vectorbt as vbt
No run for me.
!pip install alpaca-trade-api>=2.1.0
!pip install vectorbt==0.23.3
!pip install pyyaml==5.4.1
import vectorbt as vbt
That solves the issue. But that can raise resolution conflict with other package during the installation
For the moment, I haven't find other better solution
While trying to import into Google Colab using
import vectorbt as vbt
whenPyYAML
version 6 is used, I get the error message:Is there anyway to use vectorbt with PyYAML 6 ?