Can somebody explain what mklink is doing here?

410 views Asked by At

Goal: Make a symbolic link to pip.exe in a folder (C:\StacklessPython33) that is in the PATH so it gets recognized as callable application.

I do this command:

mklink "C:\StacklessPython33\pip.exe" "C:\StacklessPython33\Scripts\pip.exe"

However, when I call pip.exe from command line i get the response: Cannot open C:\StacklessPython33\pip-script.py"

pip-script.py is also a file in C:\StacklessPython33\Scripts\, but I did not link to that file.

and it gets even better... When I create a hard link, it works, with the same command.

mklink \H "C:\StacklessPython33\pip.exe" "C:\StacklessPython33\Scripts\pip.exe"

What is happening here?

EDIT: Doing right click on the symbolic link and looking it up with dir, both shows the correct target C:\StacklessPython33\Scripts\pip.exe.

0

There are 0 answers