Srinivasan A
Srinivasan A

Reputation: 51

Unable to import docx in python3

I have installed both python2 and python3 in my windows machine. I wanted to use the python-docx, so I installed it using pip install . But I am unable to use it in python3. I get these results when i try to import in Python2:

![enter image description here]1

In Python3 :

![enter image description here]2

Upvotes: 0

Views: 744

Answers (1)

scanny
scanny

Reputation: 28883

Python packages are installed in a particular Python installation. You have two Python installations and it looks like python-docx is installed in only one of them. What you need to work out is how to target the Python 3 installation for the python-docx install.

This question seems to address how to manage that.

Upvotes: 1

Related Questions