On Thu, Mar 31, 2016 at 3:35 PM, Brendan Cervone <
blce...@gmail.com> wrote:
> Trying to install xlwt-0.7.4 using cmd (extremely basic user) and this error
> keeps coming up when I run:
>
> C:\python27\python C:\users\USERNAME\desktop\xlwt-0.7.4\setup.py install
OK. To address your most immediate issue: You should be executing the
setup.py script from the "distribution directory", not from root or
any other arbitrary directory. In other words, you should change your
current directory to xlwt-0.7.4 and run setup.py from there. This
information is available in the Python documentation:
https://docs.python.org/2/install/
More specifically:
https://docs.python.org/2/install/#platform-variations
Now, to take a step back: Which exact Python version do you have? If
it's 2.7.9 or later, you have something called pip, which is the
preferred installer. You should try
pip install xlwt
at your command prompt. This will attempt to download the latest xlwt
from PyPI and install it for you. Is there some reason you're not
trying to install xlwt 1.0.0?
Finally, taking another step back (a pretty big one): Do you
specifically need to generate .xls files and not .xlsx? Because if the
newer .xlsx format is acceptable, then you should be installing
XlsxWriter instead of xlwt (though it certainly wouldn't hurt to
install them both).
John Y.