PYPY以及如何在ubuntu上不安装默认的python 2.7

PYPY以及如何在ubuntu上不安装默认的python 2.7,python,easy-install,pypy,Python,Easy Install,Pypy,如何通过easy_install安装软件包?我不想使用虚拟环境 人们会认为我能做到这一点 easy_install --prefix=/opt/pypy/site-packages pytz 但我得到以下信息: easy_install --prefix=/opt/pypy/site-packages pytz TEST FAILED: /opt/pypy/site-packages/lib/python2.7/site-packages does NOT support .pth files

如何通过easy_install安装软件包?我不想使用虚拟环境

人们会认为我能做到这一点

easy_install --prefix=/opt/pypy/site-packages pytz
但我得到以下信息:

easy_install --prefix=/opt/pypy/site-packages pytz
TEST FAILED: /opt/pypy/site-packages/lib/python2.7/site-packages does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /opt/pypy/site-packages/lib/python2.7/site-packages

and your PYTHONPATH environment variable currently contains:

    ':/fu/classes'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.

你读到了吗?是的。链接到另一个问题,但在标题“cython”中使用distribute_setup.py无效:你是说“cpython”吗?如果是这样的话,修复它就不会那么麻烦了。你为什么喜欢
easy\u install
而不是
pip
?在我看来,
我不想使用虚拟环境。
听起来不对:)。无论如何,
/opt/pypypy/bin/python-m easy\u install pytz
应该可以做到这一点。