Skip to content
Advertisement

Pythonw stuck on python2.7 on MacOS X 10.15.7 in conda environment

How can I force pythonw to use python3 instead of python2? Here are the outputs from my zsh terminal (MacOS X 10.15.7):

JavaScript

However when it comes to pythonw, I get such an output:

JavaScript

How can I make the pythonw to execute using python3?

Additional info – I am trying to install DeepLabCut software package with these instructions, and everything works fine until I try to execute the command pythonw -m deeplabcut as suggested here and I receive an error that is most likely linked to the Python version (DLC requires Python>3.7), thus my question. Please note that I work in a conda (conda version 4.10.3) environment.

Any help is appreciated!

Advertisement

Answer

In case someone struggles with this as well – run the following command:

JavaScript

This will update the pythonw and make everything work.

Advertisement