# Error in alpaca-trade-api with Python 3.9.7

**URL:** <https://forum.alpaca.markets/t/error-in-alpaca-trade-api-with-python-3-9-7/8025>\
**Category:** Alpaca Integration Applications\
**Created:** [January 15, 2022, 2:20pm UTC](https://forum.alpaca.markets/t/error-in-alpaca-trade-api-with-python-3-9-7/8025 "2022-01-15T14:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raul\_Gimeno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/raul_gimeno/32/3584_2.png) [@Raul\_Gimeno](https://forum.alpaca.markets/u/Raul_Gimeno)\
**Post date:** [January 15, 2022, 2:20pm UTC](https://forum.alpaca.markets/t/error-in-alpaca-trade-api-with-python-3-9-7/8025/1 "2022-01-15T14:20:32Z")

</div>

I get the following error message when installing the alpaca trade api with Conda  
Terminal command:

> conda install -c alpacahq alpaca-trade-api

 ![Alpaca error](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/a/a8c03d9dc8291cc68275095797b74c3884cf5bb6.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Gravitas](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@Gravitas](https://forum.alpaca.markets/u/Gravitas)\
**Post date:** [April 8, 2022, 10:13am UTC](https://forum.alpaca.markets/t/error-in-alpaca-trade-api-with-python-3-9-7/8025/2 "2022-04-08T10:13:04Z")

</div>

> [@Raul\_Gimeno](#):
>
> conda install -c alpacahq alpaca-trade-api

Fix: pip install alpaca-trade-api

Cause: the alpaca-trade-api available from the alpacahq channel work up to Python 3.8, but it is not compatible with Python 3.9.
