How to install a Python module via its setup.py in Windows?

Question:

I downloaded dateutil which comes with a setup.py file but it throws an error when I try to open it. What’s the proper way to install this module?

This is the error:

 error: no commands supplied
Asked By: John Smith

||

Answers:

setup.py is designed to be run from the command line. You’ll need to open your command prompt (In Windows 7, hold down shift while right-clicking in the directory with the setup.py file. You should be able to select “Open Command Window Here”).

From the command line, you can type

python setup.py --help

…to get a list of commands. What you are looking to do is…

python setup.py install
Answered By: Mark Hildreth
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.