![]() |
Import problems - 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: Import problems (/thread-5500.html) |
Import problems - Lux - Oct-07-2017 I am trying to use python-docx, but I can't get it to import. I'm pretty sure it's installed- if I do pip install python-docx , I get the message: Requirement already satisfied: python-docx in /Library/Python/2.7/site-packages .Writing that, I realized that the file might be in the wrong place (it says 2.7 but I'm using python 3), but I don't know how to change that and I am useless with the command line stuff. What should I do? RE: Import problems - snippsat - Oct-07-2017 You should tell that you use Mac. Homebrew is standard for Mac. $ pip2 -V # pip pointing to the Homebrew installed Python 2 interpreter $ pip3 -V # pip pointing to the Homebrew installed Python 3 interpreter (if installed)Doing it right from Hitchhiker's Guide to Python. RE: Import problems - miltmobley - Oct-09-2017 You have to use pip3 to install in python3 site-packages |