【发布时间】:2013-08-27 05:01:59
【问题描述】:
我想为 pypy3 2.1 Beta 1 安装 pymongo。我正在使用 ubuntu。 installation instruction 说我应该执行以下步骤:
(1) $ curl -O http://python-distribute.org/distribute_setup.py
(2) $ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
(3) $ ./pypy-2.1/bin/pypy 分发设置.py
(4) $ ./pypy-2.1/bin/pypy get-pip.py
(5) $ ./pypy-2.1/bin/pip install pygments # 举例
前三个步骤都OK(至少我没有发现任何错误信息)。但是当我执行步骤(4)时,出现错误:
An error occurred while trying to run get-pip.py. Make sure you have setuptools or distribute installed
怎么了?如何继续在 pypy3 2.1 Beta 1 中安装 pymongo?另外,由于我使用的是python3,所以我使用python3-pip(pip-3.3)安装了专为python3设计的pymongo库。我是否需要相应地修改上述安装步骤以适应 python3 的 pymongo?谢谢。
【问题讨论】:
-
尝试安装 setuptools。分发现已失效。
-
@Lennart Regebro:感谢您的评论。我安装了 setuptools 并通过了步骤 (4)。但是,现在轮到步骤 (5) 给我一个错误。能否请您看一下问题:stackoverflow.com/questions/18477583/… 再次感谢您。
标签: ubuntu python-3.x pymongo pypy