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 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?