Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

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 
like image 239
John Smith Avatar asked Sep 07 '12 19:09

John Smith


People also ask

How do I install Python packages from setup py?

Installing Python Packages with Setup.py To install a package that includes a setup.py file, open a command or terminal window and: cd into the root directory where setup.py is located. Enter: python setup.py install.

Does pip install run setup py?

pip is a package manager, which can install, upgrade, list and uninstall packages, like familiar package managers including: dpkg, apt, yum, urpmi, ports etc. Under the hood, it will run python setup.py install , but with specific options to control how and where things end up installed. In summary: use pip .


1 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 
like image 96
Mark Hildreth Avatar answered Sep 20 '22 01:09

Mark Hildreth