导入错误:没有名为 'setuptools' 的模块

导入错误:没有名为 'setuptools' 的模块

问题描述:

我是 Python 新手,刚刚安装了 Python 3,我是 Python 新手,在导入新库时遇到困难.

I'm new to python and have just installed the Python 3, I'm new to Python and I'm facing difficulties in importing a new library.

我正在尝试将 tweepy-master 库导入 python,我阅读了他们 github 页面上给出的说明,并在命令提示符下执行了 "python setup.py install" 命令(在 Windows 8 上)),但我得到了上面提到的错误,

I'm trying to import tweepy-master library into python, I read the instructions given on their github page and did the "python setup.py install" command in command prompt (on windows 8), but I get the error which I've mentioned above,

伙计们,请帮忙,我需要先安装一个名为 setuptools 的单独库吗?

Guys, please help, is there a separate library called setuptools which I need to install first?

看来你应该使用 Setuptools,即 Distribute 已弃用:

It seems that you should use Setuptools, i.e. Distribute is deprecated:

Distribute 是 Setuptools 项目的弃用分支.由于Setuptools 0.7 版本,Setuptools 和 Distribute 已经合并并不再维护分发.所有正在进行的努力都应该参考 Setuptools 项目和 Setuptools 文档.

Distribute is a deprecated fork of the Setuptools project. Since the Setuptools 0.7 release, Setuptools and Distribute have merged and Distribute is no longer being maintained. All ongoing effort should reference the Setuptools project and the Setuptools documentation.

已过时

您应该使用 distribute - 提供 Python 3 支持"的 setuptools fork.

Obsolete

You should use distribute - a setuptools fork which "offers Python 3 support".

安装说明(根据文档):

  • 下载 python-distribute.org/distribute_setup.py(链接已损坏,信息已过时)
  • 运行它:python distribution_setup.py

建议也安装pip:easy_install pip代码>