# No module named 'alpaca\_trade\_api'

**URL:** <https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268>\
**Category:** Getting Started with Alpaca\
**Created:** [August 9, 2022, 10:32pm UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268 "2022-08-09T22:32:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlanoue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/jlanoue/32/3549_2.png) [@jlanoue](https://forum.alpaca.markets/u/jlanoue)\
**Post date:** [August 9, 2022, 10:32pm UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/1 "2022-08-09T22:32:51Z")

</div>

Hi,  
Obviously the first issue with alpaca. Using a pip(3) list command I have confirmation that it is installed and that …\apcaca\_trade\_api\__init_\_.py does exist. I have tried installing the alpaca\_trade\_api-fixed module to no effect. I am running Python 3.10. Does anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![Hades](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hades/32/4547_2.png) [@Hades](https://forum.alpaca.markets/u/Hades)\
**Post date:** [August 10, 2022, 11:16pm UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/2 "2022-08-10T23:16:23Z")

</div>

Had the same problem when I first started using Alpaca.

It is probably the case that the Alpaca API is not being installed into your virtual environment.  
It’s usually an easy fix, you just have to change the interpreter path to the directory to which pip is installing.

You can find the path to the interpreter by typing into the terminal/command prompt the following:

```auto
pip show alpaca-trade-api

```

The path to the installed interpreter should be under “location.”

---

<div class="post-metadata">

**Author:** ![jlanoue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/jlanoue/32/3549_2.png) [@jlanoue](https://forum.alpaca.markets/u/jlanoue)\
**Post date:** [August 11, 2022, 8:47pm UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/3 "2022-08-11T20:47:19Z")

</div>

Thank you for the swift response! That did the trick! Just had to manually copy the Python packages into the coda packages site.

---

<div class="post-metadata">

**Author:** ![Hades](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hades/32/4547_2.png) [@Hades](https://forum.alpaca.markets/u/Hades)\
**Post date:** [August 12, 2022, 1:44am UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/4 "2022-08-12T01:44:00Z")

</div>

That certainly will do the trick as well! I’m glad to hear it helped.

---

<div class="post-metadata">

**Author:** ![mckinney161107](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mckinney161107](https://forum.alpaca.markets/u/mckinney161107)\
**Post date:** [October 7, 2022, 12:53am UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/5 "2022-10-07T00:53:45Z")

</div>

Hi Jlanoue, I am currently having the same problem as you are, but I am new to coding and I don’t understand how you fixed your problem. Can you tell me exactly how you fixed your problem? Thank you for your response.

---

<div class="post-metadata">

**Author:** ![jlanoue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/jlanoue/32/3549_2.png) [@jlanoue](https://forum.alpaca.markets/u/jlanoue)\
**Post date:** [October 11, 2022, 1:18am UTC](https://forum.alpaca.markets/t/no-module-named-alpaca-trade-api/10268/6 "2022-10-11T01:18:15Z")

</div>

In my case, I have both anaconda and python. The pip install instruction would install the library to the python environment when I really needed the conda environment. You may have to copy/cut/paste files to approximately the locations below: C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10\_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages  
to  
C:\Users\admin\Anaconda3\Lib\site-packages  
Best of Luck!
