簡體   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