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

a 夏天 提交于 2020-12-29 12:09:53

问题


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?


回答1:


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

There should be a pip.exe there!




回答2:


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)



来源:https://stackoverflow.com/questions/53346267/how-to-make-pip-available-to-git-bash-command-line-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!