我正在嘗試Pypy編譯器,以查看是否可以加快我的代碼的速度。但是,我在使用MySQLdb模塊時遇到了麻煩,Pypy無法找到該模塊。我已經讀到MySQLdb 1.2.4在Pypy上應該可以正常工作,所以我升級了模塊,并用CPython編譯器測試了它是正確的版本:import MySQLdbMySQLdb.__version__>> '1.2.4'但是當使用Pypy時,我得到:Python 2.7.2 (1.9+dfsg-1, Jun 19 2012, 23:23:45)[PyPy 1.9.0 with GCC 4.7.0] on linux2Type "help", "copyright", "credits" or "license" for more information.And now for something completely different: ``-FIRST they ignore you, then theylaugh at you, then they fight you, then you win.-''>>>> import MySQLdbTraceback (most recent call last): File "<console>", line 1, in <module>ImportError: No module named MySQLdb有什么幫助嗎?我在Ubuntu 13.04上運行,并使用了Canonical存儲庫中的Pypy。
添加回答
舉報
0/150
提交
取消