Recently while I transferred to the project code, the problems encountered when installing the package which MySQLdb, record it. . . .
The first is the pip install mysqldb is not to find the source file, the official online search for something, the original MySQLdb under mysql-python. Then I went to install Mysql-python results no such source.
The reason is mysql-python is compiled exe program, you need to manually run-Packages Standard Package Local Site, mysql-python link , find the corresponding version or computer-digit, after installation can be successful over the import.
Have a problem if they want to install a virtual environment is how to do a project here? Fixed installation source path is dead, my solution is to 4 package file (), copy directly to a virtual environment, when there is a bug copy
MySQLdb became mysqldb lowercase, leading to guide package fails to note here the next.