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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![samar shah](https://secure.gravatar.com/avatar/07e50e760f54811689ce93e03e29ff2a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
samar shah
3,376 Pointswhy?
who's smart idea was it to change the way the course works at this stage??? had no issues until this part, I am copying this teacher second by second but my app-env/bin/activate returns a syntax error
1 Answer
![Travis Alstrand](https://uploads.teamtreehouse.com/production/profile-photos/11658224/micro_travis.jpg)
Travis Alstrand
Data Analysis Techdegree Graduate 49,407 PointsHey there samar shah
I don't see a difference in approach in this video. I would make sure of two things when attempting to run your command.
Ensure you have changed directories in your terminal
cd <filepath>
to the root of this project where your environment is a direct child.-
Ensure you're typing the name of your environment correctly. In your post above I see
my app-env/bin/activate
In the video, Rachel does not have a space between "my" and "app". I wouldn't recommend adding a space to a folder, file or environment name either as it can cause some issues in the terminal on some OSs. If you have put in a space when creating your env, you can delete it and create a new one if you haven't already gotten a lot of work done.
Otherwise, if you're on Mac and I believe Linux, you'll need to use an escape character to tell the terminal to read that space literally.
source my\ app-env/bin/activate
That forward slash should tell the terminal to take whatever character is next (in this case, the space) literally.
Currently, without it, it's probably thinking that my
is some kind of command and throwing an error for you.
Also note, on Windows, the word source
isn't necessary, that's why Rachel isn't using it here. If you're on Mac, you'll need that in there.
I hope this helps.