'pip' is not recognized as an internal or external command, operable program or batch file

喜欢而已 提交于 2019-12-24 17:18:08

问题


I'm trying to install Tweepy using pip, but I keep getting this as the response:

I've seen similar problems and people always suggest adding C:\Python34\Scripts to your PATH. Here is what happens when I try and do that:

Then when I do echo %PATH% it doesn't show the path that I added. Using pip still does not work.

How do I make it to where I am able to use pip? I looked through multiple other questions that were VERY similar to mine, but none of the solutions worked.

Thanks for the help in advance!


回答1:


I would recommend using this guide for adding a new folder to your system path, normally works for me. It goes through a GUI instead of adding through the command line.

http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

A second solution is that you can just cd into the directory that contains pip and use it from there each time, but thats only if nothing else works.




回答2:


It seems like you are using windows so you need to download the get-pip.py and run like this.

Path_to_your_Python.exe\python.exe Path_to_get-pip.py\get-pip.py tweepy

Here is the link for download get-pip.py



来源:https://stackoverflow.com/questions/37710662/pip-is-not-recognized-as-an-internal-or-external-command-operable-program-or

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