Installing Pyflakes
Pyflakes is a Python code analysis package. It can analyze your code, and spot potential problems such as:
Unused imports
Unused variables
Getting ready
Install pip
or easy_install
, if necessary.
How to do it...
Choose one of the following listed options to install pyflakes
:
Installing with
pip
.We can install
pyflakes
with thepip
command:sudo pip install pyflakes
Installing with
easy_install
.We can install
pyflakes
with theeasy_install
command:sudo easy_install pyflakes
Installing on Linux.
The Linux package name is
pyflakes
as well. For instance, on Red Hat do the following:sudo yum install pyflakes
On Debian/Ubuntu, the command is:
sudo apt-get install pyflakes