Python Forum
Downloading a module Xlsxwriter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Downloading a module Xlsxwriter
#1
Hello,

I want to create an excel sheet using Python and a step I need to do for it is to download a module called pip install XlsxWriter. But, after I type this in my command line, it doesn´t work. Can you tell me what am I doing wrong?

[Image: Python-download-module.png]
Reply
#2
pip is not in Windows Path.
Python 3.6/3.7 and pip installation under Windows
So two ways do new installation which can be advisable if you have the long default path to Python.
Or add python root folder and Scripts folder to Windows Path,as i show in last post in link over.
Reply
#3
Thanks. But my Python is already downloaded, does it mean that I have to uninstall it and install again?
Reply
#4
I would advice to uninstall is have long default Path to Python.
Than remember to mark on Add Python37 to PATH restart pc.
Example default Path:
C:\Users\<Your user>\AppData\Programs\Python\Python37-32
I like to keep it simple with placement of C:\Python37 or choose own Path.

If look here under Fixing Path if needed,you see how to add to add exiting Python to Environment Variables Path.
Reply
#5
Ok, I have done it, I also installed that pip Xlsxwriter, this appeared:

[Image: Python-download-module2.png]

But as soon as I want to import XlsxWriter, there just appears:

Traceback (most recent call last):
  File "C:\Users\USER\Documents\doc\Program\program.py", line 1, in <module>
    import Xlsxwriter
ModuleNotFoundError: No module named 'Xlsxwriter'
Reply
#6
It's import xlsxwriter not import Xlsxwriter.
Reply
#7
Oh of course, thank you! :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Downloading images from webpages H84Gabor 2 1,879 Sep-29-2021, 05:39 PM
Last Post: snippsat
  xlsxwriter + mplfinance: Plot Stock Chart in Excel Worksheet KMV 1 2,035 Mar-09-2021, 09:44 PM
Last Post: KMV
  Xlsxwriter: Create Multiple Sheets Based on Dataframe's Sorted Values KMV 2 3,483 Mar-09-2021, 12:24 PM
Last Post: KMV
  xlsxwriter in windows dfstrottersfan 2 2,328 Sep-23-2020, 11:41 AM
Last Post: dfstrottersfan
  Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter jackie 1 3,198 May-27-2020, 11:47 PM
Last Post: mcmxl22
  XlsxWriter and Python inheritance aquerci 1 2,492 May-05-2020, 09:36 AM
Last Post: buran
  How can I create a subclass of XlsxWriter? aquerci 2 2,047 May-04-2020, 07:41 PM
Last Post: aquerci
  XlsxWriter: How can I append new data into not blank cells? aquerci 1 9,207 Jun-01-2019, 04:37 AM
Last Post: heiner55
  "if statement" and downloading a dataset Alberto 1 2,479 Jan-25-2018, 01:44 PM
Last Post: ka06059
  I am having a big issue in XlsxWriter pratheep 3 2,924 Jan-19-2018, 05:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020