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 Introducing Pipenv

when i put in open main.py then nothing happens

it says couldn't get file descriptor referring to the console

4 Answers

I don't believe open is a valid command in Linux, although that may depend on which shell you're using. I would have to verify that at home tonight, though.

This step in the video is just opening the file main.py in an editor to then work with the file. In Linux, you could install Atom for a GUI editor (and many others). nano and vi/vim are probably built-in and will work in the terminal.

I've used Windows 10 with linux terminal, Macintosh terminal as show in the video, and both Kali-linux and Ubuntu. Use "nano main.py" after the touch command. The open main.py command opens the Xcode IDE in Mac.

Fedora Linux 28 everything else worked till that stage

Hi Shmuel,

That error can mean the open command is not recognized by the operating system. Which operating system are you using? Also, are you in Terminal or another program/interface while doing this?