Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Mohr
3,157 PointsHi. I'm having problem with this line code in PyCharm can some one help me? from flask.ext.restful import Resource
Hi. I'm having problem with this line code in PyCharm can some one help me?
from flask.ext.restful import Resource
I have installed all the packages that required in the Flask REST API.
the error message is showing
from flask.ext.restful import Resource ModuleNotFoundError: No module named 'flask.ext'
2 Answers
Megan Amendola
Treehouse TeacherI believe Flask's importing has been updated to remove all .ext
. Try using from flask_restful import Resource
instead.
Daniel Mohr
3,157 Pointsnice. Thank you so much that code worked
Daniel Mohr
3,157 PointsDaniel Mohr
3,157 PointsKenneth Love