新浪SAE的Python项目,已经把需要的包放在site-packages里传到服务器了,为什么导入失败?
如题,我用saecloud把bootstrap和flask-sqlalchemy分别传到了服务器上:
(venv1)localhost:2 Midoci$ saecloud install Flask-Bootstrap
......
Successfully installed Flask-0.10.1 Flask-Bootstrap-3.3.4.1 Jinja2-2.7.3 Werkzeug-0.10.4 itsdangerous-0.24 markupsafe-0.23
然后部署:
(venv1)localhost:2 Midoci$ saecloud deploy
Deploying http://2.midociaic.sinaapp.com
Updating cache
Finding changes
Deploying to server... done
这时服务器上多出来了这些:
我在main.py里尝试导入:
from flask_bootstrap import Bootstrap
就产生导入错误ImportError: No module named flask_bootstrap了。
求解啊
sina-app-engine python flask bootstrap
cnnerv
9 years, 10 months ago
Answers
http://www.douban.com/group/topic/37945297/ 这里面的最后一条回复,应该能解答你的问题
madbxm
answered 9 years, 10 months ago