- 论坛徽章:
- 0
|
>>> import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/software/python-2.5.4/lib/python2.5/site-packages/cherrypy/__init__.py", line 161, in <module>
from cherrypy import _cptools
File "/data/software/python-2.5.4//lib/python2.5/site-packages/cherrypy/_cptools.py", line 226, in <module>
from cherrypy.lib import cptools, encoding, auth, static, tidy
File "/data/software/python-2.5.4//lib/python2.5/site-packages/cherrypy/lib/auth.py", line 2, in <module>
from cherrypy.lib import httpauth
File "/data/software/python-2.5.4//lib/python2.5/site-packages/cherrypy/lib/httpauth.py", line 70, in <module>
import base64
ImportError: No module named base64
>>>
安装 cherrypy时候,没有问题,但是使用时import cherrypy就报错。请问怎么解决? |
|