install xlwt

560 views
Skip to first unread message

Allie Cribbs

unread,
Aug 1, 2014, 10:42:02 AM8/1/14
to python...@googlegroups.com
There have been a lot of posts as to how to install xlwt - but I have not found clear directions yet. Running windows OS 64-bit.  

So far I have unzipped and placed in this folder: C:\Python27\xlwt-0.7.5

I have attempted to use 
import easy_install
runfile('C:/Python27/xlwt-0.7.5/setup.py', wdir=r'C:/Python27/xlwt-0.7.5')

Error message:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

python...@raf.org

unread,
Aug 5, 2014, 8:05:13 PM8/5/14
to python...@googlegroups.com
Allie Cribbs wrote:

> There have been a lot of posts as to how to install xlwt - but I have not
> found clear directions yet. Running windows OS 64-bit.
>
> So far I have unzipped and placed in this folder: C:\Python27\xlwt-0.7.5

delete that. it doesn't belong there.

> I have attempted to use
> import easy_install
> runfile('C:/Python27/xlwt-0.7.5/setup.py', wdir=r'C:/Python27/xlwt-0.7.5')
>
> Error message:
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> or: setup.py --help [cmd1 cmd2 ...]
> or: setup.py --help-commands
> or: setup.py cmd --help
>
> error: no commands supplied

that's because it wasn't called with the "install" command.
something like this might have worked:

cd C:\Python27\xlwt-0.7.5
python setup.py install

better still: read this guide and follow its instructions:

http://docs.python-guide.org/en/latest/starting/install/win/

then you can do something like this:

pip install xlwt

which has the advantage of easy subsequent upgrades with something like:

pip install --upgrade xlwt

if you use virtualenv as well then you can install xlwt into a virtual
python environment without affecting the system installation of python.
this can be very useful if there are multiple python programs with
different, conflicting module requirements on the same computer.

cheers,
raf

Doubea Pierre

unread,
Aug 5, 2014, 8:12:18 PM8/5/14
to python...@googlegroups.com
Here's a small summary that might help

"Download the xlutils, or xlwt , xlrd package. They will be zipped. Extract them to a specified folder. Then open command prompt. cd ______ until you reach the specified folder. by typing in dir you can see if the setup.py folder is where you are right now. When you are there (to the specified folder) try  

python setup.py install  

and if that doesn't work and says python is not on the search path. type this instead :

c:\python27\python setup.py install"

Hope that works for you



--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel...@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.

Chris Withers

unread,
Aug 6, 2014, 6:07:42 AM8/6/14
to python...@googlegroups.com
On 06/08/2014 01:12, Doubea Pierre wrote:
> Here's a small summary that might help
>
> "Download the xlutils, or xlwt , xlrd package. They will be zipped.
> Extract them to a specified folder. Then open command prompt. cd ______
> until you reach the specified folder. by typing in dir you can see if
> the setup.py folder is where you are right now. When you are there (to
> the specified folder) try
>
> python setup.py install
>
> and if that doesn't work and says python is not on the search path. type
> this instead :
>
> c:\python27\python setup.py install"
>
> Hope that works for you

I wouldn't recommend any of the above, please use pip instead.

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

Benny

unread,
Aug 6, 2014, 9:32:35 PM8/6/14
to python...@googlegroups.com
Cris,

I'm not very familiar with pip, do you know were i can find information about it? About what are the capabilities? Or what is the purpose? To use pip... thanks in advance, any comment are welcome.

python...@raf.org

unread,
Aug 6, 2014, 10:38:45 PM8/6/14
to python...@googlegroups.com
check my message on this list on Wed, 6 Aug 2014 10:05:06 +1000
or just go to:

http://docs.python-guide.org/en/latest/starting/install/win/

and read about it there.

Chris Withers

unread,
Aug 7, 2014, 3:43:55 AM8/7/14
to python...@googlegroups.com
On 07/08/2014 02:32, Benny wrote:
> Cris,
>
> I'm not very familiar with pip, do you know were i can find information about it? About what are the capabilities? Or what is the purpose? To use pip... thanks in advance, any comment are welcome.

I'm guessing googling for "pip python" is too much to ask?
Reply all
Reply to author
Forward
0 new messages