How to Source the .bash_profile?

I was following this article to get rid of

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.and whenever I'd do . ~/.bash_profile it would result in

-bash: /home/nikhil/.bash_profile: line 1: unexpected EOF while looking for matching `"'
-bash: /home/nikhil/.bash_profile: line 2: syntax error: unexpected end of file

So, I searched askUbuntu and find this and according to one of the solutions provided,

I went to Edit -> Profile Preferences -> Title and Command tab and checked the "Run command as a login shell" option. But now as soon as I open any terminal I get the first two lines as

-bash: /home/nikhil/.bash_profile: line 1: unexpected EOF while looking for matching `"'
-bash: /home/nikhil/.bash_profile: line 2: syntax error: unexpected end of file

and the same if run . ~/.bash_profile. Please help.

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like