xspaster.blogg.se

How to uninstall python 2.7 mac sierra
How to uninstall python 2.7 mac sierra












  1. #How to uninstall python 2.7 mac sierra for mac
  2. #How to uninstall python 2.7 mac sierra install

Just enter one of the following commands:Ĭreate a folder called PythonLocalProject, then display the version of python called by bash by entering python -V: $ python -V You also have to reload the bash profile in bash before any changes take effect. If you don’t want bash to run a particular version of python then delete it from bash profile and uninstall that version by following the instructions further down.ĭon’t forget to save the bash profile before closing TextEdit. If you want to keep all of your installed versions of python, but want bash to open a different version first, just copy and paste it to the bottom of the bash profile. PATH="/Library/Frameworks/amework/Versions/3.6/bin:$" bash_profile currently looks like this: # Setting PATH for Python 3.6 You’ll notice that their respective orders are opposite from each other.Įnter the following command to open the bash profile in TextEdit: $ open ~/.bash_profile If that was confusing compare the order that the python paths are added to my bash profile below to the PATH listed above. Entering python3 in bash will call python 3.6, not 3.7. This means that if you have Python 3.6 installed on your computer, and then decide to add python 3.7, but keep 3.6, the installer will add Python 3.7 to the top of the bash profile but it will end up after python 3.6 in the PATH. This means that the last path at the bottom of the bash profile will end up as the first path in the PATH. When anaconda, miniconda or other versions of python are installed they automatically add paths to their respective versions of python to the top of the bash profile.īash reads the bash profile in sequential order - from top to bottom - and adds those paths to the PATH in the order that they’re read. You can add a variety of preferences to the bash profile, including modifications to the PATH. The bash profile is a set of instructions that are run by the shell when the user logs in to bash. When the shell finds that command, it stops and calls it even if there is another version of the same command, with the same name, further down in the list. When you ask your shell to run a particular command or run an interpreter, python for example, the shell looks through the different directories listed in the PATH in order they’re presented above.

  • /Library/Frameworks/amework/Versions/3.6/bin.
  • /Library/Frameworks/amework/Versions/2.7/bin.
  • /Library/Frameworks/amework/Versions/3.7/bin.
  • The directories above are separated by a colon, this is what they look like displayed in sequence: Library/Frameworks/amework/Versions/3.7/bin:/Users/username/anaconda3/bin:/Library/Frameworks/amework/Versions/2.7/bin:/Users/username/miniconda2/bin:/Users/username/miniconda3/bin:/Library/Frameworks/amework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin:/usr/local/git/bin You can display the path on your computer using the echo $PATH command: $ echo $PATH

    #How to uninstall python 2.7 mac sierra install

    Hopefully this will help someone else with an older MacOS who didn't catch the install requirement.The path is a list of directories that your shell will look through when you execute a command. Yes! Installing a newer MacOS worked! I'm going to add it as an answer. I'm going to install a newer MacOS and see if that works.

    #How to uninstall python 2.7 mac sierra for mac

    I didn't realize that the version of QGIS I installed (3.10) is for Mac High Sierra 10.13 and newer. Per this thread on a QGIS Github forum, I think my problem may be my Mac OS. MacOS Sierra 10.12.6, QGIS 3.10, Python 2.7 (original OS install) A commenter on this question: Enabling (python) plugins on QGIS3 (Linux)? suggested installing qgis-python but I have been unable to find this package to try this solution. I forgot that I had made this change, so I was baffled for quite a while until I remembered. When I tried to use Python 2 I would get an error that my PYTHONPATH was set to QGIS Python 3. bash_profile with the following, per the solution in the comments to this question: Python plugins not available, OS X 10.10.5, QGIS 2.8.4, which did not work:Įdit: Adding those lines ^ to my bash profile (and not undoing it when it didn't work for me) caused me issues later on. I'm aware this question has already been asked numerous times in various forms, but I'm not finding any solutions that work for me.














    How to uninstall python 2.7 mac sierra