Skip to content

Setup python project on Mac

sujit22993 edited this page Mar 7, 2021 · 3 revisions
  1. Setup and install brew $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. In case python2 is already installed, you need to install pip2 to install relevant libraries $ curl https://bootstrap.pypa.io/2.7/get-pip.py -o get-pip.py && python get-pip.py
  3. Edit your ~/.bash_profile file by adding this line: $ export PATH="/Users/user1/Library/Python/2.7/bin:$PATH"
  4. Next, on the command line, source the file: $ source ~/.bash_profile
  5. Your python basic setup is done, Check using $python2 -V & $ pip -V
  6. Install Virtualenv pip install virtualenv

Clone this wiki locally