Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,972 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.