Friday, February 12, 2016

How to Install pep8 utility in Python 2.6.6

Python 2.6.6 doesn't include pep8 utility by default. This can be installed by using the pip (Pip Installs Packages) package manager. However, even pip isn't available by default with Python 2.6.6.

The following steps help with installing pip and then pep8.

  • Download get-pip.py from bootstrap.pypa.io/get-pip.py.

  • Install pip by running the following command:

    C:\Python26>python.exe get-pip.py

    Once pip is installed, the pip utility can be found at C:\Python26\Scripts\pip.exe.

  • Now use the pip package manager to download pep8.

    C:\Python26\Scripts\pip.exe install pep8

    Once the installation completes, the pep8 utility can be found at C:\Python26\Scripts\pep8.exe.

0 comments:

Post a Comment