Kicad8 pip not working, can't install kikit

Hello,

i can’t get pip to work.
image

even though though python seems to be working fine. when i type python --version it responds with 3.11.5.

I’m running out of ideas. is there a PATH i’m supposed to add? I installed the same version of kicad on my laptop where it works without anything beeing added in PATH.

there’s something wrong, because before, none of installed plugins would show up, so finally after going through and removing every trace of every kicad version i ever had and installing it in a different folder i got plugins to work, but pip still won’t work.

it seems like the installer doesn’t properly remove everything when uninstalling

Are you opening the command window by “KiCad 8.0 Command Prompt”?

image

yes, I tried with admin rights
image

On my system, the default path is C:\Users\<User>\Documents\KiCad\8.0 and pip works.

Are you sure you don’t have any weird environment variables set?

Even if I move Documents to C:\MyDocuments and create a lowercase kicad\8.0 dir, pip works on my system.

C:\MyDocuments\kicad\8.0>pip --version
pip 24.2 from C:\Program Files\KiCad\8.0\bin\Lib\site-packages\pip (python 3.11)

Check

echo %PATH%

pip.exe should be in C:\Program Files\KiCad\8.0\bin\Scripts

pip is in that exact folder. there’s no path related to kicad or python in my PATH.
adding it to path didn’t help.

however if i cd to where pip is located i get a weird file not found message

Try adding this to “C:\Program Files\KiCad\8.0\bin\kicad-cmd.bat” (as admin)

@echo _BIN_DIR:  %_BIN_DIR%

Here:

image

Then it should say

_BIN_DIR: C:\Program Files\KiCad\8.0\bin\

when opening “KiCad 8.0 Command Prompt”

PATH should definitely be like this:

C:\MyDocuments\kicad\8.0>echo %PATH%
C:\Program Files\KiCad\8.0\bin\;;C:\Program Files\KiCad\8.0\bin\Scripts;<other paths>

I’ve put what you said in that bat file

here’s the result
image

pip3.exe is, pip.exe isn’t

After uninstalling, then reinstalling KiCad 8.0.5, in C:\Program Files\KiCad\8.0\bin\Scripts there should be these files:

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        07.09.2024      6:33         120576 normalizer.exe
-a----        20.09.2024     17:33         108402 pip.exe
-a----        20.09.2024     17:33         108402 pip3.11.exe
-a----        20.09.2024     17:33         108402 pip3.exe
-a----        07.09.2024      6:33         120552 wheel.exe

you’re right.

fresh install, fresh download pip.exe missing
image

if i do this it’s there:

however if i try to install kikit like that i get an openssl error
OPENSSL_Uplink(00007FF9D82B8A38,08): no OPENSSL_Applink

Try checking that you don’t have extra openssl dlls (libssl*.dll / libcrypto*.dll) in your path and check your system files for integrity.

Also see Python interpreter encountered a "no OPENSSL_Applink" error - #2 by lassoan - Development - 3D Slicer Community

SSLKEYLOGFILE variable was the issue. after removing it, pip installed correctly and everything worked.

MrTeriyaki’s answer in this post:

problem solved! thanks everyone for contributing

1 Like