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

Python

Python Problem Overview


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

Python Solutions


Solution 1 - Python

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJohn SmithView Question on Stackoverflow
Solution 1 - PythonMark HildrethView Answer on Stackoverflow