[fix] [minor] install erpnext - pip installation
diff --git a/install_erpnext.py b/install_erpnext.py
index 1a802ae..105faa0 100644
--- a/install_erpnext.py
+++ b/install_erpnext.py
@@ -59,7 +59,7 @@
return is_redhat, is_debian
def install_using_yum():
- packages = "python python-setuptools MySQL-python httpd git memcached ntp vim-enhanced screen"
+ packages = "python python-setuptools gcc python-devel MySQL-python httpd git memcached ntp vim-enhanced screen"
print "-"*80
print "Installing Packages: (This may take some time)"
@@ -108,7 +108,7 @@
def install_using_apt():
exec_in_shell("apt-get update")
- packages = "python python-setuptools python-mysqldb apache2 git memcached ntp vim screen htop"
+ packages = "python python-setuptools python-dev build-essential python-pip python-mysqldb apache2 git memcached ntp vim screen htop"
print "-"*80
print "Installing Packages: (This may take some time)"
print packages
@@ -145,7 +145,11 @@
print python_modules
print "-"*80
- exec_in_shell("easy_install pip")
+ if not exec_in_shell("which pip"):
+ exec_in_shell("easy_install pip")
+
+ exec_in_shell("pip install --upgrade pip")
+ exec_in_shell("pip install --upgrade virtualenv")
exec_in_shell("pip install -q %s" % python_modules)
def install_erpnext(install_path):