Installing Python eggs under PyPy

前端 未结 1 956
不思量自难忘°
不思量自难忘° 2020-12-31 05:35

How do I install Python egg under PyPy?

During installation, PyPy created /usr/lib64/pypy-1.5/site-packages/ directory. So, I tried usi

相关标签:
1条回答
  • 2020-12-31 06:11

    First, you need to make sure that you have distribute installed specifically for PyPy. I don't know how fedora packages things, but in general installing a package for cpython does not make it available also for PyPy. In particular, /usr/bin/easy_install is probably CPython-only.

    If you use a "normal" install of PyPy, you have this directory structure:

    • /opt/pypy-1.5/
      • bin/
      • site-packages/
      • lib-python/
      • lib_pypy/

    Then you can download http://python-distribute.org/distribute_setup.py and execute it:

    $ /opt/pypy-1.5/bin/pypy distribute_setup.py
    

    Now, you should have /opt/pypy-1.5/bin/easy_install, which will install packages inside /opt/pypy-1.5/site-packages.

    However, I have no clue how pypy is packaged in fedora. It it's "just" installed in /usr/bin, then there are chances that installing distribute will overwrite the original cpython's /usr/bin/easy_install.

    0 讨论(0)
提交回复
热议问题