Python - problem with PIP (or modules)

Asked

Viewed 159 times

0

I am developing a program equal to word direct evil, however, which also allows naming each file in the folder.

I installed on my PC (Windows 7) Python 3.7 and, to develop the program I needed to use the module "python-docx".

I could work normally with this module, but after upgrading the PIP to version 18 the mentioned module "python-docx" has not been recognised.

I believe the problem is in the PIP update.

Do you have any idea what I can do?

Or, there is some other module that allows me to work with docx files?

Thank you.

  • 1

    It would be the case if you further specify your question. "Is now not recognized" is very vague. Edit your question and post the error message, what happens when you try to install python-docx again, contents of the folders where it gets installed, etc., all kinds of information that can help us figure out what’s happening to you

  • Dear @nosklo, I appreciate your comment. I tried to be clear. I wanted to be able to maintain and continue to clarify this issue, but the "python-docx" module was once again recognized by Pycharm. Well, I can’t verify what happened because it’s working again. I’ll keep an eye out. Thank you.

1 answer

0


Wilson, the ideal would be for you to create a virtualEnv.

It may be that some s.o software uses python and it does not allow you to manipulate the modules with Pip (pq it installs in general)

Create an Environment in Virtualenv (https://fernandofreitasalves.com/tutorial-virtualenv-para-iniciantes-windows/)

And I believe that inside it you install the necessary packages for your project!

Hug.

  • 1

    Thank you, Rafael Rotiroti.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.