[Tutor] Help with pip
Mats Wichmann
mats at wichmann.us
Mon Apr 13 20:37:04 EDT 2020
On April 13, 2020 2:14:12 PM MDT, Owen Davies <owendavies00 at gmail.com> wrote:
>Hi,
>
>I have recently started learning python and really nejoying it.
>
>I got to a tutorial where they were showing how to install modules
>through
>pip.
>
>However when i put this into terminal i cannot install docx :
>
>$ python3
>
>Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
>
>[Clang 6.0 (clang-600.0.57)] on darwin
>
>Type "help", "copyright", "credits" or "license" for more information.
>
>>>> pip install python-docx
>
> File "<stdin>", line 1
>
> pip install python-docx
>
> ^
>
>SyntaxError: invalid syntax
>
>>>>
>
>
>Please can you give me any tips on why pip isn't working? I have
>installed
>GCC and Homebrew too? I am on a Mac V10.14.6
>
>
>Thanks,
>Owen
>_______________________________________________
>Tutor maillist - Tutor at python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/mailman/listinfo/tutor
pip is invoked from the shell, not from inside python.
also, recommend this form:
python -m pip install python-docx
--
Sent from a mobile device with K-9 Mail. Please excuse my brevity.
More information about the Tutor
mailing list