question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to install for Python3

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
micksulleycommented, May 2, 2019

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 😃

0reactions
simandebvucommented, May 23, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found