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