# Error Initializing Python Engine

**URL:** <https://forum.uipath.com/t/error-initializing-python-engine/334238>\
**Category:** Activities\
**Tags:** question, python, activities\
**Created:** [August 1, 2021, 5:50am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238 "2021-08-01T05:50:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![marian.platonov](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marian.platonov/32/260263_2.png) [@marian.platonov](https://forum.uipath.com/u/marian.platonov)\
**Post date:** [September 2, 2022, 1:58pm UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/4 "2022-09-02T13:58:28Z")

</div>

Try to install python from here [Python Release Python 3.10.1 | Python.org](https://www.python.org/downloads/release/python-3101/) and then restart the machine.

In order to verify where the python.exe resides, open a cmd.exe and type:

**where python**

Based on [https://docs.uipath.com/activities/docs/release-notes-python-activities](https://docs.uipath.com/activities/docs/release-notes-python-activities) , in v1.6.0 we fixed an issue where UiPath.Python.[Activities](https://docs.uipath.com/activities/docs/introduction) v1.4.1 would not support Python v3.10.1.

* * *

In a C# Windows project with UiPath.Python.Activities[1.6.0] (Studio 2022.4.6) with a locally Python 3.10 installed

**Python Scope example configuration**

Library path:

`"C:\Users\username\AppData\Local\Programs\Python\Python310\python310.dll"`

Path:

```auto
"C:\Users\username\AppData\Local\Programs\Python\Python310\"

```

Target: **x64**

Version: **Auto**

WorkingFolder: `"C:\Users\username\OneDrive - UiPath\Desktop\Troubleshooting"`

**Run Python Script example**

File: `"C:\Users\username\OneDrive - UiPath\Desktop\Troubleshooting\oauth.py"`

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/7/c/d7ceb67adfd156d3295531de80cdce129b539340.png)

Let us know if this helped.

---

_[View the full topic](https://forum.uipath.com/t/error-initializing-python-engine/334238)._
