Jump to content

writing to excel with python and installing modules


physica

Recommended Posts

I've come a fair way in python 3. I am having trouble installing modules on my mac. Poured hours into it and it's still not working, documentation on the internet that I have managed to find is vague at best. I've used pip and typed: sudo install XlsxWriter into the command line and got the following:

 

usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]

[-o owner] file1 file2

install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]

[-o owner] file1 ... fileN directory

install -d [-v] [-g group] [-m mode] [-o owner] directory ...

 

Then back to another command prompt... is it ready to use?

 

I'm finding installing modules extremely frustrating

 

Update: I tried running a script and it said ImportError: No module named 'xlsxwriter'

Edited by physica
Link to comment
Share on other sites

Dunno worked fine for me on windows. I downloaded newest version of python inside is a folder called scripts with pip inside. On windows I had to copy the script to the main python folder with the python.exe file. Then I had to use command prompt

 

cd folder

python.exe pip.exe install XlsxWriter

 

and it ran fine. So maybe try downloading from github or something.

Edited by fiveworlds
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.