歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu中安裝python編輯器Ulipad

Ubuntu中安裝python編輯器Ulipad

日期:2017/2/28 16:40:31   编辑:Linux教程

由於在Windows中使用Ulipad一段時間了,尤其對於python代碼的編輯功能,我覺得目前還沒有一款別的編輯器能與之媲美(當然Ulipad也有美中不足的地方)。下面介紹一下在Linux下Ulipad的安裝,由於沒有像Windows下那樣的exe安裝文件,所以Uinux下安裝Ulipad只能是下載Ulipad的源碼,進行編譯安裝。下面講講我在Ubuntu中的安裝步驟:

一 . 安裝wxpython。

由於Ulipad的界面是用wxpython寫的,所以要先安裝wxpython,而且是2.8版本以上的。

安裝wxpython的方法,這裡簡單說下步驟。

1 .The packages and the repository meta-data are digitally signed, so you'll need to import the key

into your apt's list of trusted keys in order to not get warnings about it.

$ curl http://apt.wxwidgets.org/key.asc | sudo apt-key add - 如果沒有任何信息打印出來,則說明目前linux裡面沒有關於wxpython的源,需要我們手動添加源,方法如下:

2. Add the following lines to your /etc/apt/sources.list file (or use the "software sources"

program under the "system" menu). Replace the "DIST" text with whatever is appropriate for

your system.

(See the table below for a list of supported distributions and architectures.)

(把下面的內容添加到你的sources.list文件裡,這裡要詳細說明一下,DIST是指的你的linux的發行版本,詳細的版本查詢可以通過上面我們給的連接,打開後,頁面下面有個表,列出了Ubuntu的一些發行版本信息,比如下面的例子裡,是gutsy,指的是ubuntu7.10)

# wxWidgets/wxPython repository at apt.wxwidgets.org

deb http://apt.wxwidgets.org/ DIST-wx main

deb-src http://apt.wxwidgets.org/ DIST-wx main

For example, if your distro is Ubuntu Gutsy, then you would use the following configuration

statements:

# wxWidgets/wxPython repository at apt.wxwidgets.org

deb http://apt.wxwidgets.org/ gutsy-wx main

deb-src http://apt.wxwidgets.org/ gutsy-wx main

我的ubuntu是8.10,查那個表可以知道DIST name是intrepid,就可以把DIST 改為intrepid,注

意與前面的/之間空一個空格 ,其實這個DIST name有個簡單的方法能得到,就是在shell裡輸

入命令: cat /etc/*-release

xiaopeng@ubuntu:~$ cat /etc/*-release

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=8.10

DISTRIB_CODENAME=intrepid

DISTRIB_DESCRIPTION="Ubuntu 8.10"

上面是我的結果,可以知道DIST name是intrepid

Copyright © Linux教程網 All Rights Reserved