해결방법은 그냥 설치하면 되며 방법은 2가지를 제공한다.
첫번째로 MySQL-python source를 download 하여 compile installing 하는 방법과
http://sourceforge.net/projects/mysql-python/
$ 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
두번째로는 Python packages 관리를 사용하여 해당 package를 installing 하는 방법이 있다.
First thing I did was install pip, which is a better version of/replacement for easy_install:sudo easy_install pipNext I ran pip upgrade for good measure (probably not necessary but can't hurt, and worth running if you already had pip installed):sudo pip install pip --upgradeOn my machine (Ubuntu 12.04 64-bit) I also had to build the dependencies for the python-mysqldb libraries:sudo apt-get build-dep python-mysqldbAnd finally with that in place you can use pip to install the Python MySQL libraries:sudo pip install MySQL-pythonsudo pip install setuptools -no-use-wheel --upgradeIf everything worked you should now be able to run python manage.py dbshell from yourDjango project and have it load up the MySQL console.
댓글 없음:
댓글 쓰기