To start off, I have both Maya and Blender installed.
So, I needed a specific version of Python for a script in Blender so I had to install another version than what comes with Maya. After I did that I had to add an environment variable PythonPath with values for this new Python version. Otherwise Blender couldn’t find it.
Problem is, that once I did that, Maya wasn’t getting access to it’s Python. So I tried adding the folder path to C:…\Maya2019\bin, but there seems to be a conflict. I can’t have PythonPath pointing to different Python versions.
So my solution is to add the environment variable for Python 2.6 whenever I need to run my script in Blender. Then delete the environment variable before starting Maya.
There has to be a solution to this problem…