I'm new to using virtualenv and I'm having trouble installing MySQLdb on my virtualenv.
I'm currently using Python 2.7 and here is what my current virtualenv looks like
click==6.7
Flask==1.0.2
Flask-SQLAlchemy==2.3.2
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
MySQL-python==1.2.5
mysqlclient==1.3.12
SQLAlchemy==1.2.8
Werkzeug==0.14.1
I first saw this error when I was coding on my normal machine (Mac 10.13), and when I initially tried to install MySQLdb, I got this error.
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-rxnRuR/MySQL-python/
I was able to fix it by using the second solution in this question
However, when I start up my virtual environment and attempt to install MySQLdb I get the same error code as above, but I do not have the same directories that are provided in the solution I originally found.
I've tried to piece together solutions from the follow questions trying to see if there is a solution for installing MySQLdb in virtualenv Link1, Link2, Link3, but none of them seem to work
I was hoping someone might be able to explain what's going on so that I work with MySQLdb in a virtual environment.
Commands tried:
sudo pip install --upgrade setuptools
brew install mysql
brew install mysql-python
brew uninstall mysql
brew install mysql-connector-c
brew unlink mysql-connector-c
brew install mysql
pip install mysql-python
UPDATE: This seems to be a known issue and is in a Github thread I ended up solving the above error code using the solution found here, but now when I start up Python and I try to import MySQLdb, I get the following error code
Reason: image not found