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

拟墨画扇 提交于 2019-12-10 02:19:09

问题


I have just downloaded and installed the latest version of Python on my Windows 7 machine.

Python 2.7.3

Now I want to install a Twitter library I found online:

However when I try to run easy_install tweepy, I get this error message:

'easy_install' is not recognized as an in internal or external command, operable program or batch file.

Python has already been placed into my path, as I can invoke the Python program into the command line.


Here is a screenshot of my folder where Python is installed.

And inside the Tools folder:

And inside the scripts folder:


回答1:


You need to:

  1. Install easy_install: http://pypi.python.org/pypi/setuptools

  2. Add C:\Python27\Scripts to your PATH




回答2:


I had the same issue with Python 3.4. Fixed it with the steps below:

cd C:\Python34\Scripts .\easy_install pip

(or what you need to install) with the .\ you sort of grant admin permissions to the command




回答3:


I think that you should set the 'PATH' variable in order to execute it




回答4:


Looks like easy-install is not itself installed on your system.

See this previous question for instructions on installing.




回答5:


Basics official python packages need to be installed

You can install packages via the command line by entering:

python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose


来源:https://stackoverflow.com/questions/10215810/easy-install-is-not-recognized-as-an-in-internal-or-external-command-operable

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