Python Forum
Downloading a module Xlsxwriter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Downloading a module Xlsxwriter (/thread-15660.html)



Downloading a module Xlsxwriter - dan789 - Jan-26-2019

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]


RE: Downloading a module Xlsxwriter - snippsat - Jan-26-2019

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.


RE: Downloading a module Xlsxwriter - dan789 - Jan-26-2019

Thanks. But my Python is already downloaded, does it mean that I have to uninstall it and install again?


RE: Downloading a module Xlsxwriter - snippsat - Jan-26-2019

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.


RE: Downloading a module Xlsxwriter - dan789 - Jan-26-2019

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'



RE: Downloading a module Xlsxwriter - snippsat - Jan-26-2019

It's import xlsxwriter not import Xlsxwriter.


RE: Downloading a module Xlsxwriter - dan789 - Jan-26-2019

Oh of course, thank you! :)