首先 我电脑上的python 是html
安装Django 是须要经过 pip 来安装的 最新办的python3.4 应该内置了pip 所以这里 须要下载安装pip python
pip是经常使用的Python包管理工具mysql
图未截全 。。。sql
pip install djangodjango
最后成这样了app
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.工具
InsecurePlatformWarningthis
由于SSL的问题,urllib3须要pyopenssl。
最简单的方法是:
sudo pip install pyopenssl ndg-httpsclient pyasn1url
而后再次安装diango .net
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com Django
这个是安装mysql时遇到的错误 须要下载一个 mysql-python 的 依赖。 固然若是你本身能够FQ 那就用不到。
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com MySQL-python