Anaconda pythonw

Answered

I have a package (gooey) that requires the interpreter to be pythonw, instead of python. I'm running on Mac OSX 10.15.6 with my interpreter set to a Conda environment with Python 3.8.

All the searches I've done indicate that python.exe after 3.6 will run programs that need pythonw, so I shouldn't need to make any changes.  However, when I run my code, I get this error message:

This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.

I've found a similar post from 2014 (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206600735-Use-MacOSX-Anaconda-s-python-app-or-pythonw?input_string=Anaconda%20pythonw), but it doesn't appear that any resolution was ever provided to the problem.

What am I missing?

 

0
1 comment
Avatar
Permanently deleted user

I was able to solve my own problem as follows:

  • Go to Pycharm Preferences
  • Select Python Interpreter
  • Click the Gear icon in the upper right corner and select Add...
  • Select System Interpreter
  • Click the ellipsis ...
  • In your environment bin directory, select 'pythonw' (instead of 'python')
  • Press OK 3X

Your Python interpreter should be listed as 'pythonw' and you will be able to run your 'gooey' application now.

0

Please sign in to leave a comment.