A
A
Apstrew2020-06-03 21:56:28
Python
Apstrew, 2020-06-03 21:56:28

How to install and use python program from Github on Windows 10 x64?

Hello!

I want to use the program, see below (more as an example, because I'm also interested in how to run this kind of utility on Windows) https://github.com/microsoft/Simplify-Docx

Did
Git clone <git link>
Then
python setup.py install

It seems that the program got up. Now, if I take the test code from the usage section of the readme, put it in a file, for example, r.py at the root of the project, and run it with the line
python r.py

Then throws an error:

C:\concert2\Simplify-Docx>C:/Users/User/AppData/Local/Programs/Python/Python37/python.exe c:/testfolder/Simplify-Docx/r.py
Traceback (most recent call last):
  File "c:/testfolder/Simplify-Docx/r.py", line 1, in <module>
    import docx
ModuleNotFoundError: No module named 'docx'


-- Why?

Add. Information: I
installed the dependency with the command:
pip install python-docx

Now pip list shows that everything is fine:
python-docx (0.8.10)
setuptools (39.0.1)
simplify-docx (0.1.0)


As a sample for docx, I use a link to a shared docx sample on the net:
https://www.learningcontainer.com/bfd_download/sam...

And when I try all this, am I doing the right thing by putting the script in a separate file with the extension .py and run it from terminal? Or it's more correct to run directly from inside the file via Run (Ctrl + F5, I use VSCode)

Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question