0

I have no experience at all with python, so when I followed the instructions at https://github.com/unitedstates/congress, I ran the commands:

sudo pip install virtualenv
sudo pip install virtualenvwrapper

Which I later read is wrong: OSX El Capitan: sudo pip install OSError: [Errno: 1] Operation not permitted

When I try this command in the guide:

mkvirtualenv congress

I get an error.

-bash: mkvirtualenv: command not found

Not sure if it ended up installing in an unexpected place or what. Is this where it should be?

which virtualenvwrapper.sh
/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh

Please advise on how to fix.

Community
  • 1
  • 1
GoldenJoe
  • 7,874
  • 7
  • 53
  • 92

1 Answers1

1

You need to put virtualenvwrapper.sh in your .bash_profile, as explained in the Installation chapter of the virtualenvwrapper docs.

Cito
  • 5,365
  • 28
  • 30
  • It looks like I had the wrong source location in the .bash_profile. It should have been: source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh – GoldenJoe Jan 22 '17 at 23:29