开发者

setuptools easyinstall mysql-python-1.2.3

I have read a bunch of threads on setuptools here. A lot of people seem not to like it very much.

But I need to install MySQL-python-1.2.3. and when I do that I get this error:

 MySQL-python-1.2.3 X$ python setup.py cleanTraceback (most recent call last):
      File "setup.py", line 5, in <module>
        from setuptools import setup, Extension
    ImportError: No module named setuptools

So it seems I need setuptools and that it is assumed that it is installed.

On the setuptools python homepage it says:

Setuptools will install itself using the matching version of Python (e.g. python2.4), and will place the easy_install executable in the default location for installing Python scripts (as determined by the standard distutils configuration files, or by the Python installation).

Does this mean it will replace any default easy install from python?

If so I dont want to use it. If so can I开发者_StackOverflow中文版 install MySQL-python-1.2.3 without setupttools?

Thanks


You should use virtualenv and pip.

Virtualenv automatically creates a setuptools version within the new environment, so the default one is intact.

You may want to read how the packaging and installing works: 1, 2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜