Reputation: 1194
I am following https://www.tutorialspoint.com/python/python_database_access.htm to connect Python with SQL.
gunzip MySQL-python-1.2.2.tar.gz
tar -xvf MySQL-python-1.2.2.tar
cd MySQL-python-1.2.2
python setup.py build
python setup.py install
The last command "python setup.py install" gives :
error: [Errno 13] Permission denied: '/anaconda/lib/python2.7/site-packages/easy-install.pth'
Upvotes: 0
Views: 644
Reputation: 2723
Using Anaconda, you should use conda install <package-name>
Linux / Windows: conda install mysql-python
Mac OS: conda install --channel https://conda.anaconda.org/coursera mysql-python
Then it will check for dependencies and install them for you.
Upvotes: 1