首页 > 系统服务 > 详细

Mac 安装Django

时间:2016-10-26 14:08:03      阅读:218      评论:0      收藏:0      [点我收藏+]

首先 我电脑上的python  是

技术分享

安装Django  是需要通过 pip  来安装的  最新办的python3.4 应该内置了pip  因此这里 需要下载安装pip 

pip是常用的Python包管理工具

 技术分享

图未截全 。。。

pip  install  django

技术分享

最后成这样了

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.

  InsecurePlatformWarning

技术分享

 

因为SSL的问题,urllib3需要pyopenssl。
最简单的方法是:
sudo pip install pyopenssl ndg-httpsclient pyasn1

然后再次安装diango  

pip install -i http://pypi.douban.com/simple/  --trusted-host pypi.douban.com Django   

 

Mac 安装Django

原文:http://www.cnblogs.com/yhl664123701/p/5999934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!