I'm using Hostgator as a testing environment and I had a problem installing MySQL-python, after using:
pip install MySQL-python
Next error raises:
unable to execute gcc: Permission denied
enter code here`error: command 'gcc' failed with exit status 1
I ask technical support about this and they answer me:
This script requires a compiler, which shared accounts do not have access to. You would need to upload any Python scripts that you want to use as a precompiled script. You should be able to compile it elsewhere and then upload to the account to use it.
This is my first project using Python and I have not idea how to do this.
Thanks
======
UPDATE
As André proposed, What I did was using my linux I created two virtual environments (using virtualenv) one with and one without MySQL-python installed.
Checking the file structure, missing files were:
.
├── MySQLdb
│ ├── connections.py
│ ├── connections.pyc
│ ├── constants
│ │ ├── CLIENT.py
│ │ ├── CLIENT.pyc
│ │ ├── CR.py
│ │ ├── CR.pyc
│ │ ├── ER.py
│ │ ├── ER.pyc
│ │ ├── FIELD_TYPE.py
│ │ ├── FIELD_TYPE.pyc
│ │ ├── FLAG.py
│ │ ├── FLAG.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── REFRESH.py
│ │ └── REFRESH.pyc
│ ├── converters.py
│ ├── converters.pyc
│ ├── cursors.py
│ ├── cursors.pyc
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── release.py
│ ├── release.pyc
│ ├── times.py
│ └── times.pyc
├── _mysql_exceptions.py
├── _mysql_exceptions.pyc
├── MySQL_python-1.2.5-py2.7.egg-info
│ ├── dependency_links.txt
│ ├── installed-files.txt
│ ├── PKG-INFO
│ ├── SOURCES.txt
│ └── top_level.txt
└── _mysql.so
So I copied those files to:
/venv/lib/python2.7/site-packages/
Were /venv/ is the folder of the virtual enviroment created in the hosting.
Thanks again