Python2.7/3.4安装pychartdir

978 查看

1 从官方网址下载python版本的ChartDirector,并解压
http://www.advsofteng.com/index.html
2 在python模块安装目录下(/usr/local/lib/python2.7/dist-packages/)创建一个chartdirector目录
sudo mkdir /usr/local/lib/python2.7/dist-packages/chartdirector
3 进入下载好的Chartdirector/ lib,将其下所有内容copy到上边创建的目录,同时在dist-packages下t创建一个chartdirector.pth,写入chartdirector
sudo cp -r ./ChartDirector/lib/* /usr/local/lib/python2.7(python3.4)/dist-packages/chartdirector/
sudo touch /usr/local/lib/python2.7(python3.4)/dist-packages/chartdirector.pth
sudo gedit /usr/local/lib/python2.7(python3.4)/dist-packages/chartdirector.pth

4 测试


图片1.png