IDLE, the Python Integrated DeveLopment Environment. The Tkinter, NumPy, and Pygame libraries, which are used by the booksite programs that do graphics or audio processing. The booksite library, that is, a set of modules that we developed specifically to support this booksite. The Terminal application that is bundled with Mac OS X.
Python for Mac is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code. Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. Python has also been ported to the Java and.NET virtual machines.
Python is distributed under an OSI-approved open source license that makes it free to use, even for commercial products. Some of its key distinguishing features include:. Very clear, readable syntax. Strong introspection capabilities. Intuitive object orientation.
Natural expression of procedural code. Full modularity, supporting hierarchical packages. Exception-based error handling. Very high level dynamic data types. Extensive standard libraries and third party modules for virtually every task. Extensions and modules easily written in C, C (or Java for Jython, or.NET languages for IronPython). Embeddable within applications as a scripting interface Also Available.
I have installed a few versions on my MacBook for different projects and have only now realized what a mistake that was. I have used homebrew to install it, installed it via python's website ( Python 2.7.8 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and later 2)) and other ways I may not remember. I am running 10.9.4 OS X. I am wondering how I can find the location of all python installations on my computer and delete everything and packages that depend on them except the native one. I'd like to essentially start from scratch without reinstalling my OS. Also, I am wondering if I can apply the same method to find all pip related files. Update: which -a python gives me all the paths to each executable python.
Is it normal to have multiple ones? ╭─[email protected] ╰─➤ which -a python /usr/bin/python /usr/bin/python /usr/bin/python /usr/bin/python /usr/bin/python /usr/bin//python /usr/bin//python /usr/bin/python.
You can start by removing any Python Frameworks in /Library/Frameworks and any User Library (like /Library/Frameworks). The system one is in /System/Library/Frameworks. Homebrew and macports install under /usr somewhere IIRC.
Not sure of other places to look, but you should be able to grep for 'Python' to find them all. Be aware, if you have installed other software via homebrew that is dependent on Python, you will break it. You may be able to fix it with symbolic links to the system python, however, some software requires Python 3. As of 10.9 the system has Python 2.3-2.7 only. It's normal to have many python binaries.
You can see which is which in /usr/bin with this command: $ ls -l /usr/bin/python. You will see several links to different places. The native python is that one, which is in the /System/Library/Frameworks/Python.framework/Versions/2.7/bin/. Note that for OSX 10.9 (and for everything at least until 10.13) this is the python2, not python3.
So you can safely remove all the other versions. What are the other versions which you may have?. Something downloaded from the official site. It is located in /Library/Frameworks/Python.framework/Versions/.
You can remove this. distribution is by default located in /Users/youruser/anaconda3/, but of course you may put in the other place. But if it contains anaconda in the path – it's Anaconda distribution. You may remove this folder. Either homebrew or port versions are in /opt/local/bin/.
See the link destination with $ ln -l /opt/local/bin/python. The best way of removing this is to use built-in commands like uninstall. Some packages might be in /Library/Python/ - that's from pip. You may safely remove the entire content of this folder in order to have a 'clean' python. Finally, after you removed all the other versions, do not forget to remove the broken links to binaries, if there are still any.