"Command not found" error after installing Python 3.3 on OS X -
I was using Python 2.7 because it was installed on my Mac by default. I tried to update it in python 3.4 In this process, I removed 2.7 through the command line. I have installed Python 3.4 using an installer, but I still get the following error:
Python: command not found
I Checked and found that this folder is not present:
/ library / framework / python.framework / version / 3.4
I update Python Follow the instructions for. Everything went well until step 5 but failed for stage 6 and 7.
I am in a complete mess because I have removed the old version, Python 2.7. How do I fix my Python installation to solve the error and use Python 3.4?
Many users have commented that it is a bad idea to change or delete the system's Python installation It seems that the problem here is that you follow the steps given in the linked blog post Latest Version 2.x plus version 2.x Note that where It says (emphasis my):
How to upgrade to Python 3.3, Go to the bottom of this post.
In the blog post, steps 1 through 7 show how the system can upgrade Python from 2.7.1 to 2.7.3. They will be OK to set side-by-side instead of freeing them instead of replacing them with the your version without breaking the system version-perhaps you can upgrade the system version Do not bother 3 patches of the same short release from patch 1.
However, If your Python's system version is 2.x, then it will not work by replacing it with version 3.x; 2.x The system depends on note that Python 2.7:
rm -R in the bottom part of the blog post "Posting to Python 3.3" /System/Library/Frameworks/Python.framework/Versions/ has not been deleted 3.3 MV / Library / Framworks / Python Framework Version /3.3 / System / Library / Frames / Python.Framework Version < P> Instead of upgrading the version , in this case Python 3.3, upgrade to the system folder Try to move Nskrn while for a directory empty to avoid error. You need a working version of Python 2 in your system folder. If you want to use Python 3, you need a completely separate installation. Rather than relying on the steps of the guide in the reverse order, you might be able to start over again at step 1, but this time Python 2 can be enabled to download and install Python 3, but You have to make sure that you understand each step, if necessary, then search for the shell command, because it seems that you have already made some modifications, you do not understand not Ltd A. Understand the wrong section in an attempt to apply it to Python 3.
For example, you may have to step 2 from the second command
sudo mv / library / framesworks / python.framework / versions / 2.7 / System / Library /Frameworks/Python.framework/ changed Version to
Sudo MV / Library / Framework / Pth. Framework / Version / 3/4 / System / Library / Frames / Python. Framework Version When you were trying to use this step to "upgrade" from 2 to 3; Otherwise, you should not have such a file or directory error If this is the case, you will not have a 2.7 folder in the first step because you already delete it first time Have been and can not change it.
Comments
Post a Comment