Build the FLASK+MYSQLDB development environment in VIRTUALENV under Windows

Source: Internet
Author: User
Tags mysql in virtualenv

The installation of virtualenv and flask has already been introduced, the main point here is how to install MySQL in venv

Installing MYSQLDB

Download Mysql-python-1.2.3.win32-py2.7.exe and install.

After installation, the following folders and files will be added to the d:/python27/lib/site-packages automatically:

  • Mysql_python-1.2.3-py2.7.egg-info
  • MySQLdb
  • Mysql.pyd
  • MySQLexceptions.py
  • MySQLexceptions.pyc
  • MySQLexceptions.pyo

Place the above folders and files in the F:\Python program\myproject\env\lib\site-packages folder

Note: The path here is my own env installation path, to be copied according to my own path

Next Test:

Import succeeded

Build the FLASK+MYSQLDB development environment in VIRTUALENV under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.