sage默认自带了python环境即使你的系统中没有python sage也是可以正常运行,但是sage在使用一些包的时候优先使用自己的包,比如我系统安装了MySQLdb然后我认为sage已经可以使用了结果出现了如下的错误
??????? |
Traceback (click to the left of this block for traceback) ... ImportError: No module named MySQLdb ?
|
当我执行以下操作将mysql包的路径添加到sage的python搜索路径中之后,再导入mysql包是okay的
??????? | ? |
??????? | ? |
??????? | ? |
??????? | ? |
??????? |
1L ?
|
??????? | ? |
??????? | ? |
??????? |
4L ?
|
??????? |
(1L, None, None, None, None) (2L, None, 1428418800L, 1433084400L, 1423494000L) (3L, None, None, None, 1433084400L) (4L, None, None, None, None) ?
|
??????? | ? |
原文:http://robbiefeng.iteye.com/blog/2217031