我試圖用指揮下的Ubuntu 12.04.3服務器安裝的CherryPy與python3.3安裝的CherryPy:不能在ubuntu12.04
sudo python3.3 setup.py install
看來,一切都很好。
但運行測試時:
python3.3 -c "import cherrypy"
它給出了一個錯誤:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.3/dist-packages/cherrypy/__init__.py", line 82, in <module>
from cherrypy import process
File "/usr/local/lib/python3.3/dist-packages/cherrypy/process/__init__.py", line 14, in <module>
from cherrypy.process import plugins, servers
File "/usr/local/lib/python3.3/dist-packages/cherrypy/process/plugins.py", line 424, in <module>
class PerpetualTimer(threading._Timer):
AttributeError: 'module' object has no attribute '_Timer'
在做同樣的用
python2.7 -c "import cherrypy"
它沒有給輸出。
它可能是什麼?
最好的問候, 列昂尼德