django - installing python modules that require gcc on shared hosting with no gcc or root access -
django - installing python modules that require gcc on shared hosting with no gcc or root access -
i'm using hostgator shared production environment , had problem installing python modules, after using:
pip install mysql-python
pip install pillow
results in:
unable execute gcc: permission denied error: command 'gcc' failed exit status 1
server limitations
no root access sudo doesnt work (sudo: effective uid not 0, sudo installed setuid root?) no gccquestions
is there alternative bundle pillow. want utilize django imagefield. (just pymysql as capable alternative mysql-python)
i have modules mysql-python , pil installed in root, i.e. pip freeze without virtualenv lists these modules. cannot install other required modules in root environment , in virtualenv cannot install mysql-python , pil. can done? can import/use packages installed in root somehow in virtualenv?
is hostgator shared php , not python/django webapps. have limited traffic using hostgator shared. should avoid hostgator or shared hosting? aren't plenty python/django (i had no problems in hosting static/php sites ever). many problems , limitations or performance issues (fcgi)? if yes, alternatives?
you can seek building wheels on similar host gcc available, re-create them server , install. not know how much similar hosts should be.
on "similar" host gcc:
mkdir /tmp/wheels mkdir /tmp/pip-cache pip wheel --download-cache /tmp/pip-cache -w /tmp/wheels -r requirements.pip
copy wheels hosting (i assume re-create /tmp/wheels
)
install wheels ignoring index , using wheels dir:
pip install --download-cache /tmp/pip-cache --find-links=/tmp/wheels --no-index -r requirements-dev.pip
p.s. maybe should re-create download-cache hosting. not remember if needed. if not needed can skip alternative --download-cache /tmp/pip-cache
python django gcc hosting virtualenv
Comments
Post a Comment