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 trial
chris clarkson
1,380 Pointsflask !# use/bin/env python2/3
I am a bit worried about one of the tutorial videos that I watched where Kenneth put the following at the top of a script "!# use/bin/env python2/3" and said that all mac users should do this for the script to run... I am a mac user but do not like python 3....... Do I have to program in python 3 in order to use and deploy flask websites?
chris clarkson
1,380 PointsOh ok great thanks so much are the Django Tutorials on flask in python 3 also??
Nate Sturgeon
2,255 PointsNate Sturgeon
2,255 PointsNo, you do not need python 3 to use and deploy flask. However, to follow along with the tutorial and complete the coding challenges you will have adapt your knowledge of python 2 to python 3 (at least, as far as I can tell, these tutorials and such are in python 3). Python 2 and 3 are quite similar on the most basic level; however there are some important differences and you will inevitably run into trouble trying to work through a python 3 tutorial coding in python 2 unless you get very familiar with the differences in syntax and functionality. Here is a great starting point: http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html