简体   繁体   English

安装Python时,使用pypy easy_install

[英]easy_install with pypy while Python is installed

I installed PyPy while still having Python 2.7 on my system. 我在我的系统上安装了Python 2.7时安装了PyPy

  • How do I install and then use easy_install with PyPy? 如何在PyPy中安装然后使用easy_install
  • What is the syntax for distinguishing where I want to install to with easy_install ? 使用easy_install区分我要安装的位置的语法是什么?
  • Should I set any environment variables for ease of use? 我应该设置任何环境变量以方便使用吗?

I'm on Windows, but these questions seem relevant for all platform... 我在Windows上,但这些问题似乎与所有平台相关......

An alternative solution is to install pip. 另一种解决方案是安装pip。 Following the instructions in pip's documentation : 按照pip文档的说明操作

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

You need to install easy_install for pypy manually. 您需要手动为pypy安装easy_install。

It's explained in the answer to this question : Installing Python eggs under PyPy 在这个问题的答案中解释了: 在PyPy下安装Python egg

At least this worked for me: 至少这对我有用:

$ 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