How to install for Python3
See original GitHub issueThis seems a basic question, but I cannot find the answer.
I have installed with
sudo pip install python-docx
If I run
python doctest.py
it runs python 2.7.15 and works fine
If I run
python3 doctest.py
it runs python 3.6.7 and fails with
ModuleNotFoundError: No module named ‘docx’
I have also run
sudo pip install --pre python-docx
sudo pip install -U setuptools
It looks like I have python-docx installed for 2.7 but not for 3. How do I do it?
Thanks
Mick
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Python 3 Installation & Setup Guide
Step 1: Download the Official Installer. Follow these steps to download the full installer: Open a browser window and navigate to the Python.org...
Read more >Installing Python 3 and Python Packages - Codecademy
Go to the Miniconda Download page and download the Python 3.7 Windows 64-bit .exe installer. · After the download is complete, run the...
Read more >Download Python
python™ · Download the latest version for macOS · Download the latest source release · Download the latest version for Windows · Download...
Read more >How to Install Python3: Linux, Mac, PC - YouTube
Watch this entire course: https://courses.cbt.gg/ocbIn this video, CBT Nuggets trainer Ben Finkel covers installing Python3.
Read more >Installing Python 3 on Linux
Installing Python 3 on Linux¶ · $ python3 --version · $ sudo apt-get update $ sudo apt-get install python3. · $ sudo apt-get...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for your help. I think I have now solved it. I removed pip3, reinstalled it, then installed python-docx again and it all seems fine now. Don’t understand why, but it works 😃
Here’s what i did for my windows install to successfully install with python 3
python -m pip install -U pip python -m pip install -U setuptools
then proceed