Return to site

Remove Python 2.7 Mac

broken image


Warning

Pillow >= 2.1.0 no longer supports 'import _imaging'. Please use 'from PIL.Image import core as _imaging' instead.

  1. Generally, the approach to uninstallation of Python 2.7 from Mac shares a lot of similarities with the one described above. Shut down all running python processes on your Mac before you attempt to remove the application folder.
  2. Mac OS X has installed python by default, but the version is 2.7.10. It is a little old, so i decide to upgrade python to the newest version which is 3.6.5 now. But after install new version, when i open a terminal and run python, it still use python 2.7. This issue also exist in Installed Python 3 On Mac OS X But It Still Use Python 2.7 Read More ».
Mac

Warning

Pillow >= 1.0 no longer supports 'import Image'. Please use 'from PIL import Image' instead.

Warning

PIL and Pillow currently cannot co-exist in the same environment.If you want to use Pillow, please remove PIL first.

Note

Pillow >= 2.0.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4

Note

I want to install pip for python 2.7 on my Mac. I think this is the python located in /usr/bin/python. Serif webplus x7 templates free download windows 10. Unfortunately I have already installed Anaconda, which installs python 3.6.3, and changes things so that the command python xxx.py automatically runs xxx.py using python 3.6.3.

Pillow < 2.0.0 supports Python versions 2.4, 2.5, 2.6, 2.7.

Simple installation¶

Note

The following instructions will install Pillow with support for most formats.See External libraries for the features you would gain by installingthe external libraries first. This page probably also include specificinstructions for your platform.

You can install Pillow with pip:

Or easy_install (for installing Python Eggs, as pip doesnot support them):

Uninstall python 2 on mac

Or download the compressed archive from PyPI, extract it, and inside itrun:

External libraries¶

Note

You do not need to install all of the external libraries to use Pillow's basic features.

Many of Pillow's features require external libraries:

  • libjpeg provides JPEG functionality.
    • Pillow has been tested with libjpeg versions 6b, 8, and 9 and libjpeg-turbo version 8.
  • zlib provides access to compressed PNGs
  • libtiff provides compressed TIFF functionality
    • Pillow has been tested with libtiff versions 3.x and 4.0
  • libfreetype provides type related services
  • littlecms provides color management
    • Pillow version 2.2.1 and below uses liblcms1, Pillow 2.3.0 andabove uses liblcms2. Tested with 1.19 and 2.2.
  • libwebp provides the WebP format.
    • Pillow has been tested with version 0.1.3, which does not readtransparent WebP files. Versions 0.3.0 and 0.4.0 supporttransparency.
  • tcl/tk provides support for tkinter bitmap and photo images.
  • openjpeg provides JPEG 2000 functionality.
    • Pillow has been tested with openjpeg 2.0.0 and 2.1.0.

Once you have installed the prerequisites,run:

If the prerequisites are installed in the standard library locationsfor your machine (e.g. /usr or /usr/local), noadditional configuration should be required. If they are installed ina non-standard location, you may need to configure setuptools to usethose locations by editing setup.py orsetup.cfg, or by adding environment variables on the commandline:

Python

Build Options¶

  • Environment Variable: MAX_CONCURRENCY=n. By default, Pillow willuse multiprocessing to build the extension on all available CPUs,but not more than 4. Setting MAX_CONCURRENCY to 1 will disableparallel building.
  • Build flags: --disable-zlib, --disable-jpeg,--disable-tiff, --disable-freetype, --disable-tcl,--disable-tk, --disable-lcms, --disable-webp,--disable-webpmux, --disable-jpeg2000. Disable building thecorresponding feature even if the development libraries are presenton the building machine.
  • Build flags: --enable-zlib, --enable-jpeg,--enable-tiff, --enable-freetype, --enable-tcl,--enable-tk, --enable-lcms, --enable-webp,--enable-webpmux, --enable-jpeg2000. Require that thecorresponding feature is built. The build will raise an exception ifthe libraries are not found. Webpmux (WebP metadata) relies on WebPsupport. Tcl and Tk also must be used together.

Sample Usage:

Linux installation¶

Note

Fedora, Debian/Ubuntu, and ArchLinux include Pillow (instead of PIL) withtheir distributions. Consider using those instead of installing manually.

We do not provide binaries for Linux. If you didn't build Python fromsource, make sure you have Python's development libraries installed. In Debianor Ubuntu:

Or for Python 3:

In Fedora, the command is:

Prerequisites are installed on Ubuntu 12.04 LTS or Raspian Wheezy7.0 with:

Mac

Prerequisites are installed on Ubuntu 14.04 LTS with:

Prerequisites are installed on Fedora 20 with:

Mac OS X installation¶

We provide binaries for OS X in the form of Python Wheels. Alternatively you can compile Pillow with with XCode.

The easiest way to install external libraries is via Homebrew. After you install Homebrew, run:

Install Pillow with:

Windows installation¶

We provide binaries for Windows in the form of Python Eggs and Python Wheels:

Python Eggs¶

Note

pip does not support Python Eggs; use easy_installinstead.

Python Wheels¶

Note

Experimental. Requires setuptools >=0.8 and pip >=1.4.1

If the above does not work, it's likely because we haven't uploaded awheel for the latest version of Pillow. In that case, try pinning itto a specific version:

FreeBSD installation¶

Make sure you have Python's development libraries installed.:

Or for Python 3:

Prerequisites are installed on FreeBSD 10 with:

Platform support¶

Current platform support for Pillow. Binary distributions are contributed foreach release on a volunteer basis, but the source should compile and runeverywhere platform support is listed. In general, we aim to support allcurrent versions of Linux, OS X, and Windows.

Note

Contributors please test on your platform, edit this document, and send apull request.

Bengali

Warning

Pillow >= 1.0 no longer supports 'import Image'. Please use 'from PIL import Image' instead.

Warning

PIL and Pillow currently cannot co-exist in the same environment.If you want to use Pillow, please remove PIL first.

Note

Pillow >= 2.0.0 supports Python versions 2.6, 2.7, 3.2, 3.3, 3.4

Note

I want to install pip for python 2.7 on my Mac. I think this is the python located in /usr/bin/python. Serif webplus x7 templates free download windows 10. Unfortunately I have already installed Anaconda, which installs python 3.6.3, and changes things so that the command python xxx.py automatically runs xxx.py using python 3.6.3.

Pillow < 2.0.0 supports Python versions 2.4, 2.5, 2.6, 2.7.

Simple installation¶

Note

The following instructions will install Pillow with support for most formats.See External libraries for the features you would gain by installingthe external libraries first. This page probably also include specificinstructions for your platform.

You can install Pillow with pip:

Or easy_install (for installing Python Eggs, as pip doesnot support them):

Or download the compressed archive from PyPI, extract it, and inside itrun:

External libraries¶

Note

You do not need to install all of the external libraries to use Pillow's basic features.

Many of Pillow's features require external libraries:

  • libjpeg provides JPEG functionality.
    • Pillow has been tested with libjpeg versions 6b, 8, and 9 and libjpeg-turbo version 8.
  • zlib provides access to compressed PNGs
  • libtiff provides compressed TIFF functionality
    • Pillow has been tested with libtiff versions 3.x and 4.0
  • libfreetype provides type related services
  • littlecms provides color management
    • Pillow version 2.2.1 and below uses liblcms1, Pillow 2.3.0 andabove uses liblcms2. Tested with 1.19 and 2.2.
  • libwebp provides the WebP format.
    • Pillow has been tested with version 0.1.3, which does not readtransparent WebP files. Versions 0.3.0 and 0.4.0 supporttransparency.
  • tcl/tk provides support for tkinter bitmap and photo images.
  • openjpeg provides JPEG 2000 functionality.
    • Pillow has been tested with openjpeg 2.0.0 and 2.1.0.

Once you have installed the prerequisites,run:

If the prerequisites are installed in the standard library locationsfor your machine (e.g. /usr or /usr/local), noadditional configuration should be required. If they are installed ina non-standard location, you may need to configure setuptools to usethose locations by editing setup.py orsetup.cfg, or by adding environment variables on the commandline:

Build Options¶

  • Environment Variable: MAX_CONCURRENCY=n. By default, Pillow willuse multiprocessing to build the extension on all available CPUs,but not more than 4. Setting MAX_CONCURRENCY to 1 will disableparallel building.
  • Build flags: --disable-zlib, --disable-jpeg,--disable-tiff, --disable-freetype, --disable-tcl,--disable-tk, --disable-lcms, --disable-webp,--disable-webpmux, --disable-jpeg2000. Disable building thecorresponding feature even if the development libraries are presenton the building machine.
  • Build flags: --enable-zlib, --enable-jpeg,--enable-tiff, --enable-freetype, --enable-tcl,--enable-tk, --enable-lcms, --enable-webp,--enable-webpmux, --enable-jpeg2000. Require that thecorresponding feature is built. The build will raise an exception ifthe libraries are not found. Webpmux (WebP metadata) relies on WebPsupport. Tcl and Tk also must be used together.

Sample Usage:

Linux installation¶

Note

Fedora, Debian/Ubuntu, and ArchLinux include Pillow (instead of PIL) withtheir distributions. Consider using those instead of installing manually.

We do not provide binaries for Linux. If you didn't build Python fromsource, make sure you have Python's development libraries installed. In Debianor Ubuntu:

Or for Python 3:

In Fedora, the command is:

Prerequisites are installed on Ubuntu 12.04 LTS or Raspian Wheezy7.0 with:

Prerequisites are installed on Ubuntu 14.04 LTS with:

Prerequisites are installed on Fedora 20 with:

Mac OS X installation¶

We provide binaries for OS X in the form of Python Wheels. Alternatively you can compile Pillow with with XCode.

The easiest way to install external libraries is via Homebrew. After you install Homebrew, run:

Install Pillow with:

Windows installation¶

We provide binaries for Windows in the form of Python Eggs and Python Wheels:

Python Eggs¶

Note

pip does not support Python Eggs; use easy_installinstead.

Python Wheels¶

Note

Experimental. Requires setuptools >=0.8 and pip >=1.4.1

If the above does not work, it's likely because we haven't uploaded awheel for the latest version of Pillow. In that case, try pinning itto a specific version:

FreeBSD installation¶

Make sure you have Python's development libraries installed.:

Or for Python 3:

Prerequisites are installed on FreeBSD 10 with:

Platform support¶

Current platform support for Pillow. Binary distributions are contributed foreach release on a volunteer basis, but the source should compile and runeverywhere platform support is listed. In general, we aim to support allcurrent versions of Linux, OS X, and Windows.

Note

Contributors please test on your platform, edit this document, and send apull request.

Operating systemSupportedTested Python versionsTested Pillow versionsTested processors
Mac OS X 10.10 Yosemitex86-64
Mac OS X 10.9 MavericksYes2.7,3.42.6.1x86-64
Mac OS X 10.8 Mountain LionYes2.6,2.7,3.2,3.3x86-64
Redhat Linux 6Yes2.6x86
CentOS 6.3Yes2.7,3.3x86
Fedora 20Yes2.7,3.32.3.0x86-64
Ubuntu Linux 10.04 LTSYes2.62.3.0x86,x86-64
Ubuntu Linux 12.04 LTSYes

2.6,2.7,3.2,3.3,PyPy2.4,PyPy3,v2.3

2.7,3.2

2.6.1

2.6.1

x86,x86-64

ppc

Ubuntu Linux 14.04 LTSYes2.7,3.2,3.3,3.42.3.0x86
Raspian WheezyYes2.7,3.22.3.0arm
Gentoo LinuxYes2.7,3.22.1.0x86-64
FreeBSD 10Yes2.7,3.42.4,2.3.1x86-64
Windows 7 ProYes2.7,3.2,3.32.2.1x86-64
Windows Server 2008 R2 EnterpriseYes3.3x86-64
Windows 8 ProYes2.6,2.7,3.2,3.3,3.4a32.2.0x86,x86-64
Windows 8.1 ProYes2.6,2.7,3.2,3.3,3.42.3.0, 2.4.0x86,x86-64

Download Python 2.7 For Windows

Old Versions¶

Install Python 3 On Mac

You can download old distributions from PyPI. Only the latest 1.x and 2.x releases are visible, but all releases are available by direct URL access e.g. https://pypi.python.org/pypi/Pillow/1.0.





broken image