I'm trying to cleanup Python on my Mac. I keep getting this message in Terminal:
Your PYTHONPATH points to a site-packages dir for Python 3.x but you are running Python 2.x! PYTHONPATH is currently: "/Applications/QGIS3.10.app/Contents/Resources/python" You should
unset PYTHONPATHto fix this.
What is going on? Why does QGIS keep setting my PYTHONPATH to itself? I keep resetting my PYTHONPATH with
unset PYTHONPATH but then this keeps happening anyway.
Update 1: I think Python 2 and Python 3 both use the same PYTHONPATH, so I will have to figure out a workaround. The answers on this SE post may help: https://stackoverflow.com/questions/34066261/how-to-set-different-pythonpath-variables-for-python3-and-python2-respectively. Will post an update if I get it working...
Update 2 (and Solution): The problem is that I set my .bash_profile to QGIS. I forgot I had done this trying to solve another problem I had several months ago, which didn't work, but I never reversed the changes I made. So, problem officially solved.