Skip to content
Advertisement

Can’t install alpaca_trade_api

I tried using pip install alpaca_trade_api and it errored out with exit status 1. I also tried pip install alpaca-trade-api and it had the same errors.

I get a ton of errors including this one:

JavaScript

Additionally the command takes forever to run.

I think this may have to do with me upgrading pip and pip3 and accidentally using sudo to upgrade and install them.

What can I do to fix this.

Advertisement

Answer

I resolved the issue. The issue was with installing pandas and numpy per Pip install pandas results in error (Python3.8, Pycharm, Apple Silicon)

To fix:

  1. Install brew using
JavaScript
  1. Install openblas followed by numpy and pandas using brew
JavaScript
  1. Install alpaca trade api
JavaScript

Thanks for all the help!

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement