码迷,mamicode.com
首页 > 编程语言 > 详细

用pip安装python 模块OpenSSL

时间:2014-08-14 16:14:48      阅读:1023      评论:0      收藏:0      [点我收藏+]

标签:http   .net   python   ad   window   安装   on   sp   

windows下

1.配置好pip命令

下载安装setuptools-5.4.2.win32-py2.7.exe

装好在C:\Python27\Scripts下应该有easy_install.exe 和 pip.exe

设置好环境变量Path 有C:\Python27\Scripts

在命令行输入pip是否成功

2.下载pyOpenSSL-0.11.winxp32-py2.7.exe

下载地址 https://launchpad.net/pyopenssl

装好后 import OpenSSL

可能报cryptography 找不到

 

3.去pypi网站下载cryptography-0.5.3-cp27-none-win32.whl

接着pip来装whl

确保装好wheel  pip install wheel

解压 pip wheel cryptography-0.5.3-cp27-none-win32.whl 会解压到当前目录下的wheelhouse ,里面有依赖的whl

安装 pip install --use-wheel --no-index --find-links=wheelhouse cryptography

看是否成成功

测试import OpenSSL 是否报错

 

( ps. 下源码包 自己编译安装 很痛苦。。.)

用pip安装python 模块OpenSSL,布布扣,bubuko.com

用pip安装python 模块OpenSSL

标签:http   .net   python   ad   window   安装   on   sp   

原文地址:http://www.cnblogs.com/aveenzhou/p/3912539.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!