[pypy-dev] question about install pymongo

Heng Zhou hzhou1 at cs.uml.edu
Sun Aug 25 05:36:48 CEST 2013


Just now I tried to execute the steps in http://doc.pypy.org/en/latest/
getting-started.html#installing-pypy. curl -O
http://python-distribute.org/distribute_setup.py is OK, curl -O
https://raw.github.com/pypa/pip/master/contrib/get-pip.py is OK,
./pypy-2.1/bin/pypy distribute_setup.py is OK (I have a different directory
for PyPy3 2.1 Beta 1, but the executable pypy is still in the bin directory
and I do all the steps in the bin directory). But ./pypy-2.1/bin/pypy
get-pip.py gives error : "An error occurred while trying to run get-
pip.py, Make sure you have setuptools or distribute installed." I checked
the bin directory, distribute_setup.py and  get-pip.py is in it. What's the
matter and how can I install pymongo in the PyPy3 2.1 Beta 1?


On Sat, Aug 24, 2013 at 10:06 PM, Leonardo Santagada <santagada at gmail.com>wrote:

> just a tip, distribute merged with setuptools so probably the docs should
> be updated (if the new setuptools support pypy3)
>
>
> On Sat, Aug 24, 2013 at 8:56 PM, Heng Zhou <hzhou1 at cs.uml.edu> wrote:
>
>> I have installed the PyPy3 2.1 Beta 1 on my ubuntu. When I tried to
>> import pymongo, a third party driver for mongodb, I was told "ImportError:
>> No module named pymongo". So my questions are:
>>
>> (1)Does it mean I have to install pymongo again for pypy3 2.1 Beta 1?
>> (2)If yes,
>> http://doc.pypy.org/en/latest/getting-started.html#installing-pypy<https://urldefense.proofpoint.com/v1/url?u=http://doc.pypy.org/en/latest/getting-started.html%23installing-pypy&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=gb1Wbxevg8sPVbV1l%2B0aBKGAUh0g6vsCtScqPfTmt%2Bk%3D%0A&m=ZZPZV2DOPaelJ%2Fdhj8qUjXH%2B0UTXVZOrjWBozz094EE%3D%0A&s=88cacd302076c887c1b28b1b9b9bd3304bfc6e7aa02306e8ea4fd8b758a02111>says:
>> If you want to install 3rd party libraries, the most convenient way is to
>> install distribute and pip:
>> $ curl -O http://python-distribute.org/distribute_setup.py<https://urldefense.proofpoint.com/v1/url?u=http://python-distribute.org/distribute_setup.py&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=gb1Wbxevg8sPVbV1l%2B0aBKGAUh0g6vsCtScqPfTmt%2Bk%3D%0A&m=ZZPZV2DOPaelJ%2Fdhj8qUjXH%2B0UTXVZOrjWBozz094EE%3D%0A&s=92129dab145d7446bff84c0850a34084441af440921b354db43f3de0c52ab9ff>
>> $ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py<https://urldefense.proofpoint.com/v1/url?u=https://raw.github.com/pypa/pip/master/contrib/get-pip.py&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=gb1Wbxevg8sPVbV1l%2B0aBKGAUh0g6vsCtScqPfTmt%2Bk%3D%0A&m=ZZPZV2DOPaelJ%2Fdhj8qUjXH%2B0UTXVZOrjWBozz094EE%3D%0A&s=95dd122543e6c1b9bc80737f3f81470642f056cc89ae933107bfbe757cd07c4b>
>> $ ./pypy-2.1/bin/pypy distribute_setup.py
>> $ ./pypy-2.1/bin/pypy get-pip.py
>> $ ./pypy-2.1/bin/pip install pygments # for example
>>
>> But, These instructions seems for pypy-2.1, the stable release for python
>> 2.x only, not for PyPy3 which is used for python 3. Are the steps for
>> installing 3rd party libraries for PyPy3 similar to the above ones?
>> (3)If yes, I don't have curl installed in my ubuntu, do I have to install
>> it?
>> (4)I used "pip-3.3" which is particularly designed for python3 to install
>> the pymongo instead of "pip". Is there any corresponding counterpart of
>> pip-3.3 for PyPy3 2.1 Beta 1? If there is any, how to get it?
>>
>> Thank you.
>>
>> _______________________________________________
>> pypy-dev mailing list
>> pypy-dev at python.org
>> http://mail.python.org/mailman/listinfo/pypy-dev<https://urldefense.proofpoint.com/v1/url?u=http://mail.python.org/mailman/listinfo/pypy-dev&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=gb1Wbxevg8sPVbV1l%2B0aBKGAUh0g6vsCtScqPfTmt%2Bk%3D%0A&m=ZZPZV2DOPaelJ%2Fdhj8qUjXH%2B0UTXVZOrjWBozz094EE%3D%0A&s=7f032e49b7395c0dd18165397be03bde060c848dbe3babe6fe46421de136ca9e>
>>
>>
>
>
> --
>
> Leonardo Santagada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130824/4d44ffdd/attachment-0001.html>


More information about the pypy-dev mailing list