[WinError 123} Can't install pip packages

Question:

I tried to find solutions on simillar threads but really can’t find any.
Can’t install packages due to an error WinError 123 as shown on image below:
Image here!

I find it weird that in path there is ‘sC’ term at the end.

I tried to reinstall and install different versions of python but it happens on all as I assumme that is a Windows problem.

ENV definitions pt.1

ENV definitons pt.2

During investigation i put print command in path and mkdir function variable called ‘name’. Everything goes well over there but i found a problem at last few lines:
Problem
So the last Path is corrupted as it adds a ‘s’ character and repeats the path again, and when tool is cropping the path it leaves it with just sC signs.

Asked By: jezzaho

||

Answers:

Well… it took rather longer distance than i thought and of course the answer is simple.

Easiest way is to run:

pip config debug 

and localize your installing paths:

Here is the output:

Here it is.

I saw there was a weird one over there at global.target variable which I did not modify. Easy solution, just change pip.ini file so the path is actually the path you want your libraries to be stored at.

Answered By: jezzaho
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.