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 IDLE in a Virtual Environment

ARMANDO RODRIGUEZ
ARMANDO RODRIGUEZ
4,216 Points

This series needs an overhaul. It's very badly done.

Here's my problem with this Python series:
The video skips corrected typing. Why do you do this? Don't cut that out. Seeing the developer correct the spelling of lines like fb\Scripts -> .fb\Scripts\ gives us time to type along with the developer.
Cutting that out makes it seem like there's some magic tab key or button they're pressing to make PowerShell auto correct the typing.
The other problem - You skip over like 2 or 3 steps when you show us new methods.
You showed us how to activate the powershell when we first create a venv, and then when you make a second venv, the video skips and he's already INSIDE the powershell, activated?
This is probably the worst series I've seen since joining the site.

3 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Hey ARMANDO RODRIGUEZ, sorry you've find this series to be lacking. Once I get a bit of free time, I'll take a look at this workshop and try to clean things up. Thanks for bringing it up!

Andreas Tollånes
Andreas Tollånes
13,044 Points

Maybe also include a video on how to use virtualenv with another editor like Sublime.

Chris Grazioli
Chris Grazioli
31,225 Points

I'm finally sitting down and following this virtual environment stuff. But when I make the requirements.txt I can't view it. How the hell is is it my machine doesn't have cat? How does one get cat, why don't I have it.

If I type out cat .\requirements.txt I get something like: "cat is not recognized as an internal or external command, operable program or batch file.

how does one remedy this little mess, shouldn't that "JUST" be there

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Chris Grazioli hmm, I thought Windows had cat but maybe not. Or maybe not all versions of Windows? You should be able to open the file in a text editor since it's a plain text file.

Chris Grazioli
Chris Grazioli
31,225 Points

Kenneth Love I wanna fix the problem not work round it. Any ideas on what to install or where, how even? I'd like to follow along with the functionality... running windows 10

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

I'm not certain cat is available on Windows. I wasn't able to find anything in my searches. But, the type utility seems to do exactly the same thing and is available in all of the standard Windows shells (cmd.exe, PowerShell, and maybe a few others). So, use type wherever you saw me use cat.

Chris Grazioli
Chris Grazioli
31,225 Points

Kenneth Love Another quick question regarding python installs. Once I added python 3.5 to the path, I seem to loose the ability to run python 2.7 anymore on the command line. Do you have any insight as to the ins and outs of running both versions on the same machine (not at the same time), as I have other classes I'm taking that for whatever reason want me to only use 2.7

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Hmm, I'd have to do some digging on this (I don't use Windows for development very often, but it's something I want to get back into). When you installed each Python, was there any option to control what the executable was? Like, you could make the Python 3 one be python3 instead of just python?