# FileNotFoundError when installing modules (ampl-3.0.0.dll) with amplpy.modules

**URL:** <https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209>\
**Category:** Support\
**Created:** [November 7, 2025, 12:24pm UTC](https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209 "2025-11-07T12:24:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelmanuel.rueda](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/angelmanuel.rueda/32/893_2.png) [@angelmanuel.rueda](https://discuss.ampl.com/u/angelmanuel.rueda)\
**Post date:** [November 7, 2025, 12:24pm UTC](https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209/1 "2025-11-07T12:24:11Z")

</div>

Dear AMPL Support,

I have installed amplpy using pip, and the installation seemed to complete correctly:

```bash
pip install amplpy

```

Next, I tried to install modules for open-source solvers to use them through Pyomo. Following the documentation, I ran the following command:

```bash
python -m amplpy.modules install coin highs scip gcg -q 

```

However, this results in the following error:

```auto
File "<frozen runpy>", line 112, in _get_module_details
  File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\ __init__.py", line 17, in <module>
    raise exp
  File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\ __init__.py", line 15, in <module>
    ctypes.CDLL(dllfile)
    ~~~~~~~~~~~ ^^^^^^^^^
  File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\ctypes\ __init__.py", line 390, in __init__
    self._handle = _dlopen(self._name, mode)
                   ~~~~~~~ ^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\amplpython\cppinterface\lib\amd64\ampl-3.0.0.dll' (or one of its dependencies). Try using the full path with constructor syntax.

```

I have checked, and the library `ampl-3.0.0.dll` **does exist** in that directory, so I am not sure what the problem could be.

Thank you in advance.

Best regards, Ángel

---

<div class="post-metadata">

**Author:** ![Jurgen\_Lentz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/jurgen_lentz/32/192_2.png) [@Jurgen\_Lentz](https://discuss.ampl.com/u/Jurgen_Lentz)\
**Post date:** [November 10, 2025, 4:28pm UTC](https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209/2 "2025-11-10T16:28:33Z")

</div>

Dear Ángel,

it might be possible that the dependencies of the library `ampl-3.0.0.dll` cannot be found. Can you please provide the libraries that are shown as dependencies for `ampl-3.0.0.dll` using the tool [dumpbin](https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-reference?view=msvc-170)?

Best wishes,  
Jürgen

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [November 10, 2025, 5:21pm UTC](https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209/3 "2025-11-10T17:21:30Z")

</div>

Hi @angelmanuel.rueda,

Typically this happens when Microsoft Visual C++ Redistributable Package is missing. You can install it from [https://aka.ms/vs/16/release/vc\_redist.x64.exe](https://aka.ms/vs/16/release/vc_redist.x64.exe) as mentioned in the last paragraph of [Introduction — AMPL API 2.1 (amplpy-0.15.0) documentation](https://amplpy.ampl.com/en/latest/intro.html#system-requirements).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/fe81b84535503f21fc46872e013cff3b184f9119.png) [@system](https://discuss.ampl.com/u/system)\
**Post date:** [February 8, 2026, 5:22pm UTC](https://discuss.ampl.com/t/filenotfounderror-when-installing-modules-ampl-3-0-0-dll-with-amplpy-modules/2209/4 "2026-02-08T17:22:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
