Install Frappe Bench and erpnext on macbook

Follow below steps to install frappe bench on macbook

First make sure you have python3.9 and python-devel installed, you can use homebrew to install these

$brew install python3.9

Once installed follow below instructions

$pip3.9 install --upgrade setuptools cryptography psutil
$pip3.9 install --upgrade pip3.9
$git clone https://github.com/frappe/bench ~/.bench --depth 1 --branch develop
$sudo pip3.9 install -e ~/.bench
$cd /var/www
$bench init /var/www/frappe-bench --frappe-path https://github.com/frappe/frappe --frappe-branch develop --python python3.9
$cd frappe-bench/

#below command is optional
$./env/bin/pip install numpy && ./env/bin/pip install pandas

#continue after optional command
$bench get-app erpnext https://github.com/frappe/erpnext --branch develop
$bench new-site leela.sample.com --admin-password 'YOUR_ADMIN_PASSWORD' --db-name erpnext_platform --db-host 127.0.0.1
$bench --site leela.sample.com install-app erpnext
$bench start

Add leela.sample.com to your host file

$sudo vi /etc/hosts

#in this file add below line
127.0.0.1  leela.sample.com

#once added save the file

Now access the domain http://leela.sample.com:8000

Published:
comments powered by Disqus