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

Python Regular Expressions in Python Introduction to Regular Expressions Reading Files

James N
James N
17,864 Points

is "regex" built-in to python? or do i have to download it seperatly?

just wondering, do i have to manually install regex into my local python dev environment with pip? or is it pre-installed as part of python?

also, how do i view all the external python packages that are installed into my pc? FYI: i'm running windows.

1 Answer

Zach Swift
Zach Swift
17,984 Points

Python has re included in the standard library. https://docs.python.org/2/library/re.html

Python should be installed on your main hard drive at the lowest level for example: C:\\Python27 or C:\\Python34. If you go into that folder, look around in the lib and site-packages directory and you'll see what is available.