# Error when trying to run openmc codes with python

**URL:** <https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328>\
**Category:** User Support\
**Created:** [September 28, 2022, 3:34pm UTC](https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328 "2022-09-28T15:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dalia](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Dalia](https://openmc.discourse.group/u/Dalia)\
**Post date:** [September 28, 2022, 3:34pm UTC](https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328/1 "2022-09-28T15:34:29Z")

</div>

Hello everyone,

I’m using windows and I’m trying to run openmc code using python, I tried both methods using jupyter notbook and running a python file and I get the same error shown in the screenshots, that there’s no module as openmc, though I was leaving the container on docker running. Is it related to python API? how can I fix this?  
Thank you so much for your help.

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/8/8a479571db13cf2d4ad44f74d5a89a9a75b3a9a1.png)

---

<div class="post-metadata">

**Author:** ![Dalia](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Dalia](https://openmc.discourse.group/u/Dalia)\
**Post date:** [September 28, 2022, 3:34pm UTC](https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328/2 "2022-09-28T15:34:45Z")

</div>

and this too:  
 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/4/4b99f67e69536520d618d10bd7a954bfe670ec56.png)

---

<div class="post-metadata">

**Author:** ![Shimwell](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shimwell/32/3876_2.png) [@Shimwell](https://openmc.discourse.group/u/Shimwell)\
**Post date:** [September 29, 2022, 7:51am UTC](https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328/3 "2022-09-29T07:51:46Z")

</div>

Hi Dalia

From the path in the above screenshot it looks like you are running from native Windows. OpenMC can’t currently be installed in native windows and if you want to stick with Windows you would need to use Docker or WSL.

Alternatively OpenMC supports Linux and Mac OSx natively

---

<div class="post-metadata">

**Author:** ![Dalia](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Dalia](https://openmc.discourse.group/u/Dalia)\
**Post date:** [September 29, 2022, 12:40pm UTC](https://openmc.discourse.group/t/error-when-trying-to-run-openmc-codes-with-python/2328/4 "2022-09-29T12:40:51Z")

</div>

Got it, thank you so much for your help! I got ubuntu on virtualbox and with miniconda I finally got jupyter note to run openmc code!
