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 Setting Up a Local Python Environment Installing Python and Python Libraries Locally Using virtualenv

Setting the PATH variable - edit ~/.bash_profile

When I open a new Terminal window I get this:

Last login: Tue Jul 7 13:20:05 on ttys001 -bash: /Users/schlep/.bash_profile: line 4: unexpected EOF while looking for matching `"' -bash: /Users/schlep/.bash_profile: line 5: syntax error: unexpected end of file schleps-MacBook-Pro:~ schlep$

This is what my .bash_profile looks like:

Setting PATH for Python 3.4

The orginal version is saved in .bash_profile.pysave

export PATH=“~/Library/Python/3.4/bin:$PATH"

What is wrong?

Oops. I'm new to this. maybe it looks more like this:

Last login: Tue Jul  7 13:27:45 on ttys000
-bash: /Users/schlep/.bash_profile: line 4: unexpected EOF while looking for matching `"'
-bash: /Users/schlep/.bash_profile: line 5: syntax error: unexpected end of file
schleps-MacBook-Pro:~ schlep$ 

and my .bash_profile looks like this:

# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
export PATH=“~/Library/Python/3.4/bin:$PATH"

1 Answer

Guillaume Maka
PLUS
Guillaume Maka
Courses Plus Student 10,224 Points

The unix env variables don't like '~' just replace by the absolute path:

export PATH="/Users/schlep/Library/Python/3.4/bin:$PATH"

Thanks. Will give that a try when I get back to it.