# Shotgrid Desktop Python3 but Console Python 2?

**URL:** <https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348>\
**Category:** Flow Production Tracking\
**Tags:** python\
**Created:** [May 11, 2022, 1:22pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348 "2022-05-11T13:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgolter](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/paulgolter/32/4941_2.png) [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Post date:** [May 11, 2022, 1:22pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348/1 "2022-05-11T13:22:03Z")

</div>

Hey friends,

I am on Linux Fedora and want to be able to write Python3 code in the Shotgrid config. The Desktop App seems to be showing me that it is running Python3 as you can see here in the screenshot.  
 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/f/f85f05600275d51ebbca42dba904ba235ccdd077.png)  
But as soons as I open the Shotgrid Python Console it runs Python 2.  
Because of that reason trying to import `pathlib` in the config throws an error.

I hear I can try setting an environment variable `SHOTGUN_PYTHON_VERSION` to the value 3. Doing this seems to have no effect on the console.

Has anyone some advice on how to run fully Python3 ?

---

<div class="post-metadata">

**Author:** ![paulgolter](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/paulgolter/32/4941_2.png) [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Post date:** [May 17, 2022, 12:10pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348/2 "2022-05-17T12:10:41Z")

</div>

Hey,

so for others who might have the same problem. Found a related [thread](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/2).

I needed to replace the content of the file in my config: `core/interpreter_Linux.cfg` with the path to the python interpreter I wanted to use.  
`/usr/bin/python3.7`
