[Python] How to use PIP to install python-docx?

Discussão em 'Python' iniciado por Stack, Janeiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I entered the following command into the terminal on my Mac: sudo pip install python-docx --user . Things happen, and stuff pops up and down like crazy in the terminal. All of a sudden... an error! It's kinda irking me. The following comes up:

    error: can't copy 'docx/templates/default-docx-template': doesn't exist or not a regular file

    ----------------------------------------
    Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-NbCMpP/python-docx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-rulxzG/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/tmp/pip-install-NbCMpP/python-docx/


    All I want is for docx to show up in my damn Lib file in Pycharm.

    Continue reading...

Compartilhe esta Página