Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make pip available to git bash command line on Windows?

I added the pip installation folder in my python site-packages directory to my PATH, but I can still only run it via python -m pip in my git bash. Just pip gives me command not found.

I looked around the pip directory and I don't see any binaries, so this makes sense. Yet clearly pip is a thing that is normally used on the command line without python -m. So what component am I missing here?

like image 487
temporary_user_name Avatar asked Nov 16 '18 22:11

temporary_user_name


People also ask

Why is pip not working in CMD?

A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.

Does pip work in CMD?

Add pip to the PATH using CMD: Launch the Run dialog box by pressing the Windows key + R. For a new command prompt window, type cmd and then hit Enter. Type the command setx PATH “%PATH%; C:\Python39\Scripts and press Enter to run it.


2 Answers

Try adding C:/path/to/python/Scripts/ to PATH

There should be a pip.exe there!

like image 197
curlpipesudobash Avatar answered Nov 14 '22 04:11

curlpipesudobash


in your Anaconda directory there is a pip file in the direcctory Scripts.

add this path : C:\Users#yourname\Anaconda3\Scripts

i did the same and it was successful !! (when i wrote pip in git bash it worked)

like image 37
Sukhrob Nuraliev Avatar answered Nov 14 '22 05:11

Sukhrob Nuraliev