这些是我已经完成的步骤:
apt-get install libxml2-dev libxslt1-dev python-dev python-setuptools
easy_install mechanize lxml tornado
这是脚本:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import lxml.html
import mechanize
import tornado.web
运行脚本:
python tornado.py
这是错误消息:
Traceback (most recent call last):
File "tornado.py", line 6, in <module>
import tornado.web
File "/root/scripts/tornado.py", line 6, in <module>
import tornado.web
ImportError: No module named web
提前致谢。