# Run PsychoPy experiment without opening Builder

**URL:** <https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290>\
**Category:** Builder\
**Created:** [October 3, 2019, 2:43pm UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290 "2019-10-03T14:43:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moein\_Razavi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/moein_razavi/32/5376_2.png) [@Moein\_Razavi](https://discourse.psychopy.org/u/Moein_Razavi)\
**Post date:** [October 3, 2019, 2:43pm UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290/1 "2019-10-03T14:43:58Z")

</div>

Hello,

Is there any way to run the PsychoPy experiment directly (e.g. using windows command prompt) without opening the Builder first?

Thank you

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [October 3, 2019, 2:54pm UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290/2 "2019-10-03T14:54:49Z")

</div>

Hi, yes you can run the experiment using the Python interpreter that is packaged with the standalone software. E.g., if you are running from Windows, something like:

`C:\Program Files(x86)\PsychoPy\python.exe path_to_your_script.py`

---

<div class="post-metadata">

**Author:** ![Moein\_Razavi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/moein_razavi/32/5376_2.png) [@Moein\_Razavi](https://discourse.psychopy.org/u/Moein_Razavi)\
**Post date:** [October 3, 2019, 3:30pm UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290/3 "2019-10-03T15:30:56Z")

</div>

![image.png](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/6/f6495001079d47dcbf0be90aceb3e21c2d428e61.png)

I opened the python interpreter and then entered the path to my compiled script but I got this error (the attached picture). Did I do something wrong?

Thank you

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [October 3, 2019, 4:12pm UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290/4 "2019-10-03T16:12:02Z")

</div>

Oh, did you run that from the Python interpreter? You just run it from the console, without opening Python.

---

<div class="post-metadata">

**Author:** ![Moein\_Razavi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/moein_razavi/32/5376_2.png) [@Moein\_Razavi](https://discourse.psychopy.org/u/Moein_Razavi)\
**Post date:** [October 4, 2019, 1:24am UTC](https://discourse.psychopy.org/t/run-psychopy-experiment-without-opening-builder/9290/5 "2019-10-04T01:24:04Z")

</div>

Thanks. It worked
