Python Install In Mac

Python install in mac operating system

Question :

Why is Python easy_install not working on my Mac?

IDLE is known to hang or crash when used with the Apple 8.5.7 included in all versions of macOS 10.6.x. Because of this, we strongly recommend that you do not attempt to use Tkinter or IDLE with the Apple-supplied Python 2.6.1 in 10.6. Instead, install a newer version of Python that supports a newer version of Tk. This is an Aqua Cocoa Tk. Oct 03, 2021 Getting and Installing MacPython¶ macOS since version 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you are invited to install the most recent version of Python 3 from the Python website (A current “universal binary” build of Python, which runs natively on the Mac’s new Intel and legacy PPC CPU.

I have a Mac running Python 2.6. When I try to use easy_install I get this message:

I am very confused by this and I want to know how I can fix this. Previously I didn’t get this message, then after installing pip and uninstalling it, easy_install no longer works. I was wondering how I could fix this, or restore the default Python or easy_install setting on Mac.

  • Installing Python, PIL/Pillow, and cImage.py Windows. Install Python 2.7.8 (64-bit — this is important). Install Python 3.4.1 (Python 2.7 is already.
  • May 11, 2021 Proceed through the installation. To check that Python on Mac has updated properly, launch Terminal again and type: python3 -version. Note: When updating Python to version 3.x, don’t try to delete the old Python version 2.x from your Mac. That’s because your Mac utilities are actually made to use the old version, and deleting it could.
  • Sep 25, 2021 Install Latest Version Of Python On Mac Keyboard. Double click on the file/icon python.exe. The following pop-up window will appear: Installing Python IDLE On MAC – Step 1: We can check the version of python currently installed on the system. Generally, Python 2.7 is installed by default in Mac. Install Latest Version Of Python On Mac.
  1. Check your /usr/bin and /usr/local/bin for easy_install installations and remove any old script:

  2. Download and run distribute:

  3. Try again, and enjoy. E.g.:

I suspect the easiest way you can get easy_install working again is to install distribute, which is an improved version of distutils that bundles it’s own version of easy_install. Installation is simple:

I had the same problem just after installing the new Operating System (Lion OSX).
After install python and execute it

I got the following error:

Then I realize it was a permission problem. If I execute the ipython script as sudo it worked.

So I changed the ownership from root to my user () of the folder /Library/Python/2.7/site-packages/

Use change ownership only if you don’t have several accounts that uses python.

I hope it work for you.

Best

Your setuptools installation is broken. The easy_install-2.6 script in your /usr/bin directory, is only a wrapper that loads the actual easy_install module in your Python installation, and the latter is missing. Presumably uninstalling pip either broke the pointer to it (usually in the form of a .pth file in your site-packages directory) or removed the whole package but didn’t remove the /usr/bin/easy_install-2.6 wrapper script.

Your best bet is to re-install setuptools from scratch again, by following the instructions on the setuptools PyPI page.

I had the same problem, I suspect caused by my installation of Homebrew which apparently installs its own version of easy_install blindly and screws up whatever you’re currently running (enough times for homebrew to recognize it as a problem). I found my solution here Upgraded Python on Snowleopard Using Homebrew now pip and easy_install don’t work

While I’m actually on Lion, it still fixed my problem. You just download ez_setup.py from http://pypi.python.org/pypi/ez_setup – run ez_setup.py through terminal and you’re off to the races.

I had a similar error message after following similar steps. I suspect it’s because I tried to install the distribute module, and it tried to install a new version of setuptools which
didn’t quite work because it failed to correctly override the Mac OS X supplied setuptools. But that’s only a suspicion.

I fixed my problem by doing the following. I found that the directory /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
had 4 files with .OLD in the name. When I did a compare with similarly named files without the .OLD from when things worked (via Time Machine) I found that they were the same except for the name. So I did the following renames:

setuptools.OLD.1305936263.57 ->
setuptools
setuptools-0.6c9-py2.6.egg-info.OLD.1305936263.57 -> setuptools-0.6c9-py2.6.egg-info
pkg_resources.py.OLD.1305936263.57
-> pkg_resources
site.py.OLD.1305936263.59 -> site.py

I had to use the command line and sudo mv because the files are owned by root. For example: sudo mv setuptools.OLD.1305936263.57 setuptools. You’ll have to enter your password.

The other thing I did was clean the /Library/Python/2.6/site-packages directory. I used Time Machine to set it back to its pre-messed up state. If you don’t have Time Machine, then you should be able to recover if you delete any files or folders beginning with distribute, easy-install, pip, pkg_resources, setuptools and site.

If that doesn’t do the trick, uninstall any modules you can from that directory. For example use pip uninstall if you installed modules with pip. The reason to do this is that installation can copy files into usr/local/bin and other places that pip will remove for you.

Next it’s time to remove any remaining modules. Rename the folder (in case there’s something you want later) and make a new empty one.

Reinstall the modules you want and with a little luck you’re back in business…

Python

Martijn Pieter’s answer is correct.

  1. Go to http://pypi.python.org/pypi/setuptools#downloads
  2. Download setuptools-0.6c11-py2.7.egg
  3. From your downloads directory run: sudo ./setuptools-0.6c11-py2.7.egg

Done 🙂

Sierra

Related posts:

Review the system requirements listed below before installing Anaconda Individual Edition. If you don’t want the hundreds of packages included with Anaconda, you can install Miniconda, amini version of Anaconda that includes just conda, its dependencies, and Python.

System requirements

The Earth Engine Python API can be installed to a local machine via conda, a Python package and environment manager. Conda is bundled with Anaconda and Miniconda Python distributions. Anaconda is a data science programming platform that includes 1500+ packages, while Miniconda includes only conda and its dependencies. Anaconda is distinguished in its many functional abilities, which include managing system packages, computing and processing large-scale data, influencing predictive analytics, and performing programming in the Python language. This article shows you how to install Anaconda in Ubuntu 20.04.

  • License: Free use and redistribution under the terms of the ../eula.
  • Operating system: Windows 8 or newer, 64-bit macOS 10.13+, or Linux, including Ubuntu, RedHat, CentOS 6+, and others.
  • If your operating system is older than what is currently supported, you can find older versions of the Anaconda installers in our archive that might work for you. See Using Anaconda on older operating systems for version recommendations.
  • System architecture: Windows- 64-bit x86, 32-bit x86; MacOS- 64-bit x86; Linux- 64-bit x86, 64-bit Power8/Power9.
  • Minimum 5 GB disk space to download and install.

Anaconda Python Install Mac

On Windows, macOS, and Linux, it is best to install Anaconda for the local user,which does not require administrator permissions and is the most robust type ofinstallation. However, if you need to, you can install Anaconda system wide,which does require administrator permissions.

Silent mode install

You can use silent mode toautomatically accept default settings and have no screen prompts appear duringinstallation.

Using Anaconda on older operating systems

We recommend upgrading your operating system. Most OS that are no longersupported in the latest Anaconda are no longer getting security updates.Upgrading your OS allows you to get the latest packages, performanceimprovements, bug fixes, etc.

To use Anaconda on older operating systems, download from our archive.You will not be able to use conda to update or install packages beyondthe Anaconda version noted in the table below, unless you limit it toversions available at the time that particular version of Anacondawas released.You can see what was available by checking the package table archives.

Outdated operating system support
Operating systemHow to install Anaconda
macOS 10.10-10.12; Windows 7Use the command line or graphical installers for Anaconda versions 2019.10 and earlier. Download from our archive.
macOS 10.9

Use the command line or graphical installers for Anaconda versions5.1 and earlier.

Note

Qt and other packages released after Anaconda Distribution 5.1 (February 15th, 2018)may not work on macOS 10.9, so it may be necessary to not update certain packages beyond this point.

macOS 10.7 and 10.8Use the command line installers for Anaconda versions 4.2 and earlier.
macOS 10.5 and 10.6

Use the command line installers for Anaconda versions 1.8 and earlier.

Windows XPUse Anaconda versions 2.2 and earlier.
Centos5 (or equivalent)Use Anaconda versions 4.3 and earlier.

Installing Anaconda on a non-networked machine (air gap)

  1. Obtain a local copy of the appropriate Anaconda installer for the non-networked machine. You can copy the Anaconda installer to the target machine using many different methods including a portable hard drive, USB drive, or CD.
  2. After copying the installer to the non-networked machine, follow the detailed installation instructions for your operating system.

Note

Anaconda Python Install Mac Os

Install

You can install offline copies of both docs.anaconda.com and enterprise-docs.anaconda.com by installing the conda package anaconda-docs: condainstallanaconda-docs

You can install offline copies of documentation for many of Anaconda’s open-source packages by installing the conda package anaconda-oss-docs: condainstallanaconda-oss-docs

Anaconda Python Install Pandas

Pip Install Python In Mac

Other ways to get Anaconda or Miniconda

You can find the official Anaconda or Miniconda AMIs on the AWS Marketplace.

You can find the official Anaconda and Miniconda Docker images on Docker Hub.

Install Python In Mac Terminal

Anaconda Python Install Package

If you have a CDH cluster, you can install the Anaconda parcel using Cloudera Manager. The Anaconda parcel provides a static installation of Anaconda, based on Python 2.7, that can be used with Python and PySpark jobs on the cluster.

Anaconda Python Install Mac Dmg

Python Install In Mac Free

Troubleshooting

Python Install In Mac Free

If you experience errors during the installation process,review our Troubleshooting topics.