本文介绍了Django mysqlclient安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开始学习Django,但是我什至无法通过安装.我安装了Python 3.4,Django,setuptools和Apache.数据库是否全部剩下来进行设置?

I am trying to start learning Django, but I can't even pass through the installation. I have Python 3.4, Django, setuptools and Apache installed. Is database all that is left to setup?

此外,我想尝试MySQL,这是djangoproject的链接: https://pypi. python.org/pypi/mysqlclient

Also, I wanted to try with MySQL and this is the link from djangoproject: https://pypi.python.org/pypi/mysqlclient

问题是我找不到应该下载什么.whl文件,如何打开它以及是否要做的所有信息.我不明白为什么没有集成的Django开发工具之类的东西,但这是其他论坛的问题:)

The problem is that I can't find any information on what .whl file should I download, how to open it and if that is all I have to do. I dont get why there isn't some integrated Django developement kit or something, but that is a question for some other forum :)

推荐答案

我建议您阅读virtualenv的基础知识( http://docs.python-guide.org/en/latest/dev/virtualenvs/),然后从那里继续.

I'd recommend that you read up the basics of virtualenv (http://docs.python-guide.org/en/latest/dev/virtualenvs/) and continue from there.

基本上,以下命令将使您运行:

Basically following commands should get you running:

$ cd ~/your_project_directory
$ virtualenv env
$ source env/bin/activate
$ pip install django
$ pip install mysql-python

确保在系统上安装了MySQL(服务器).如果您使用的是Mac OS X,brew( http://brew.sh/)非常方便.

Make sure you have MySQL (server) installed on your system. If you're on Mac OS X, brew (http://brew.sh/) is quite handy.

这篇关于Django mysqlclient安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:32