0

When trying to run: pip install -e git+https://github.com/tjguk/wmi.git#egg=wmi, I got the following error: cmd output

Which is a pretty well known problem so when googling the problem I found many relevant threads such as: pip install -U setuptools fail windows 10

In which I tried the most voted solution and got the "infamous" message again: cmd output second try

I kept looking for a solution until I got to this question, which was really comprehensive but unfortunately, somewhat outdated since I'm told to use Python 3.

In the end of the output, logs are mentioned, If I need to attach them here I'll need directions on how to retrieve them and I'll gladly attach.

E_net4
  • 27,810
  • 13
  • 101
  • 139

1 Answers1

0

Apparently, after looking up the directory:

"C:\Users\user\AppData\Roaming\Python\Python38\site-packages\setuptools"

I found out that it does not contain the module "version.py" which was probably used to check if 'setuptools' was installed.

So I tried to copy the contents of "C:\Program Files\Python38\Lib\site-packages\setuptools" into the matching folder mentioned above and now the problem is solved, I even tried to restart my PC to see if the fix was temporary - Gladly, it wasn't.

Although I'm not sure why the problem occurred to begin with, it seems to be solved now.

The output after the fix: fixed output