First I ran the following:
$ pip install virtualenvwrapper
Then inside of the .bash_profile file inside of my home directory I added the following lines.
# virtualenvwrapper stuff
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/PyDevel
source /usr/local/bin/virtualenvwrapper.sh
Finally I sourced .bash_profile:
$ source ~/.bash_profile
Now I have a directory called .virtualenvs/ inside of my home directory. Inside of my home directory, I create the 'PyDevel' directory.
Then I created my project's directory:
Christophers-MacBook-Pro-2:~ christopherspears$ mkproject scrapestat
New python executable in scrapestat/bin/python2.7
Also creating executable in scrapestat/bin/python
Installing Setuptools..............................................................................................................................................................................................................................done.
Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
Creating /Users/christopherspears/PyDevel/scrapestat
Setting project for scrapestat to /Users/christopherspears/PyDevel/scrapestat
No comments:
Post a Comment