Jump to content

writing to excel with python and installing modules

Featured Replies

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

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

  • Author

Thanks for looking into this. It turns out I was installing it to pip as opposed to pip3. It now works :)

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.