先记录下ubuntu下pygal的安装命令:
1 | sudo pip install pygal |
pycharm下配置Pyqt4:
1
2sudo apt-get install python-pip
sudo apt-get install build-essentialpyqt4:
1
sudo apt-get install libxext6 libxext-dev libqt4-dev libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-designer qt4-qtconfig "python-qt4-*" python-qt4
3.安装pycharm(官网下载)专业版支持django
解压到program下(用VNC图形界面下操作)
用户名:EMBRACE
密钥:
1 | 14203-12042010 |
脚本默认启动目录:/usr/local/bin/charm
4.
1 | apt-get install python-lxml |
5.pycharm+pyqt4
配置:
http://www.jb51.net/softjc/127737.html
1 | sudo apt-get install qdevelop |
6.sip安装:pip install sip
不成功的话:easy_install sip
估计还是不行 绿色安装吧:
http://www.riverbankcomputing.com/software/sip/download
解压缩,进文件夹然后:python configure.py
检查sip -V
是否成功。
7.用ubuntu的软件中心安装软件cx_Freeze失败所以:
1 | sudo pip install cx_Freeze |
pycharm连接qtdesigner:
pycharm中:File->settings->Tools->external tools
‘+’增加一个工具,
Program选择qtdesigner的运行路径;Working directory
中输入$ProjectFileDir$
pycharm连接pyuic:
先安装:1
sudo apt-get install pyqt4-dev-tools
测试pyuic命令能否运行。
1
pyuic
pycharm中:
File->settings->Tools->external tools
‘+’增加一个工具,
Program输入:pyuic4
参数输入:-x $FileName$ -o $FileNameWithoutExtension$.py
Working directory
中输入:$ProjectFileDir$
示例命令:
1 | pyuic4 -x untitled.ui -o untitled.py |
三种绘制表格的库:
1.第一种pygal:
http://pygal.org/
1 | apt-get install python-lxml |
第二种matplotlib:
1
2
3
4
5apt-get install python-numpy
apt-get install python-scipy
apt-get install libpng-dev
apt-get install python-matplotlib
pip install matplotlib第三种pycha:
1
pip install pycha