ubuntu下ipython的安裝


ipython是一個很不錯的調試工具,多謝園友zhuangzhuang1988提示。

在Ubuntu下,安裝ipython很簡單:

$sudo apt-get install ipython

Ubuntu默認的python為2,所以如果要使用ipython3需要運行

$sudo apt-get install ipython3

如果想要使用ipython-qt,對於python2而言可以直接在軟件中心中安裝(當然,ipython也可以),對於ipyhon3-qt,則要麻煩一些。

$sudo apt-get source python-slip

$sudo apt-get python-qt4

然后對於新下載的源碼,都進入源碼目錄后執行:

$sudo python3 configure.py
$sudo make
$sudo make install

參考:

http://zoomquiet.org/res/scrapbook/ZqFLOSS/data/20110408194625/

 

PyQt is not yet packaged for Python 3, so we have to recompile from source. You'll need to install the packages qt4-dev-tools qt4-qmake python3-dev. PyQt must match the system version of Qt, so don't download the newest version from Riverbank. Use apt-get source to get:

  • First, python-sip (needed to compile PyQt)
  • python-qt4

For each, do:

python3 configure.py
make
sudo make install

You should now be able to run the Qt console frontend (ipython3-qtconsole).

我安裝后沒有成功,太菜,於是在這里找到了下載:

http://packages.debian.org/wheezy/all/ipython3-qtconsole/download

下載后安裝,提示依賴關系不足 :-(

最后,在/etc/apt/sources.list 文件中像下面這樣添加一行(不知道不填加能否安裝):

deb http://ftp.de.debian.org/debian wheezy main 

然后在新立得中看到了ipython3 qtconsole,標記安裝,然后在終端運行:

ipyhon3 qtconsole

OK !

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM