Trying to get an external library module to work for the first time in python

Viewed 40

Not sure what's gone wrong here. I upgraded pip before installing the python-docx module and though it gave me that error, the version changed so I wasn't sure what had gone wrong. My site-packages are red which I read means that they're excluded, but I'm not sure what that means for this instance. I've got a screenshot of what's going down in both cmd and pycharm:

external module problem

2 Answers

Try Running cmd as administrator, Clearly it says "Access Denied". Are you logged in on an Admin user Account in Windows?

Try Right Clicking and open the CMD with Admin Privileges.

The problem is that you have 2 runtime of python.

Lets call them A and B.

You have installed the external lib under runtime A but you try to consume it under runtime B.

A - is under "AppData"

B - is "venv"

Related