Mac 安装Django
首先 我电脑上的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
这个是安装mysql时遇到的错误 需要下载一个 mysql-python 的 依赖。 当然如果你自己可以FQ 那就用不到。
pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com MySQL-python
最新文章
- 多线程编程-工具篇-BlockingQueue
- com.apache.dc.query.Query所属包名apache-common-sid.jar
- javafx之CSS初探
- BZOJ_1052_[HAOI2007]_覆盖问题_(二分+贪心)
- XSHELL和XFTP,亲兄弟啊。
- [LeetCode] 230. Kth Smallest Element in a BST 解题思路
- Bulk-Only传输协议 UFI命令块规范
- rpm包制作
- hihoCoder #1082 : 然而沼跃鱼早就看穿了一切(字符串处理)
- 【Luogu3478】【POI2008】STA-Station(动态规划)
- vs2015 key
- python的各种推导式
- YII框架实现 RBAC
- 【C/C++】Rotate Array
- C++进阶--结构体和类
- [LCT应用]
- [STL][C++]VECTOR
- Go开发环境与LIteIDE安装、配置、搭建
- MikroTik-ROS-无线设备传输距离
- python模块的打包
热门文章
- git 错误 fatal: loose object...is corrupt
- 转: android之虚拟机访问tomcat服务器资源
- Oracle 和 mysql 的批量操作Sql语句 的区别
- HDU5296 Annoying problem(LCA)
- ES6必知必会 (六)—— Class
- 使用VS2008进行WEB负载测试
- <;script type=";text/template";>;是干什么的,为什么要把html写在js中? 这是什么编程语言风格,都能这样用吗?
- 适合Centos Web服务器的iptables规则
- Linux 增加系统调用 (转)
- TextRank in Python