繁体   English   中英

安装Python时,使用pypy easy_install

[英]easy_install with pypy while Python is installed

我在我的系统上安装了Python 2.7时安装了PyPy

  • 如何在PyPy中安装然后使用easy_install
  • 使用easy_install区分我要安装的位置的语法是什么?
  • 我应该设置任何环境变量以方便使用吗?

我在Windows上,但这些问题似乎与所有平台相关......

另一种解决方案是安装pip。 按照pip文档的说明操作

wget https://bootstrap.pypa.io/get-pip.py
pypy get-pip.py
pypy -m pip install ipython

您需要手动为pypy安装easy_install。

在这个问题的答案中解释了: 在PyPy下安装Python egg

至少这对我有用:

$ brew install pypy
$ pypy -m easy_install ipython

$ /usr/local/share/pypy/ipython
Python 2.7.3 (480845e6b1dd, Jul 31 2013, 10:58:28)
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM