如何在Debian上为Python 2.5安装SSL?
我试过了:
sudo easy_install ssl
但得到:
$python setup.py buildlooking for /usr/include/openssl/ssl.hlooking for /usr/include/krb5.hrunning buildrunning build_pyrunning build_extbuilding 'ssl._ssl2' extensioncreating build/temp.linux-i686-2.5creating build/temp.linux-i686-2.5/sslgcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I./ssl/2.5.1 -I/usr/include/python2.5 -c ssl/_ssl2.c -o build/temp.linux-i686-2.5/ssl/_ssl2.oIn file included from ssl/_ssl2.c:75:./ssl/2.5.1/socketmodule.h:45:33: error: bluetooth/bluetooth.h: No such file or directory./ssl/2.5.1/socketmodule.h:46:30: error: bluetooth/rfcomm.h: No such file or directory./ssl/2.5.1/socketmodule.h:47:29: error: bluetooth/l2cap.h: No such file or directory./ssl/2.5.1/socketmodule.h:48:27: error: bluetooth/sco.h: No such file or directoryIn file included from ssl/_ssl2.c:75:./ssl/2.5.1/socketmodule.h:98: error: fIEld ‘bt_l2’ has incomplete type./ssl/2.5.1/socketmodule.h:99: error: fIEld ‘bt_rc’ has incomplete type./ssl/2.5.1/socketmodule.h:100: error: fIEld ‘bt_sco’ has incomplete typeerror: command 'gcc' Failed with exit status 1
解
sudo apt-get install libbluetooth-devsudo rm /usr/lib/python2.5/site-packages/ssl/__init__.pyc解决方法 作为参考,您必须安装libbluetooth-dev. 总结
以上是内存溢出为你收集整理的如何在Debian Linux上为python 2.5安装SSL?全部内容,希望文章能够帮你解决如何在Debian Linux上为python 2.5安装SSL?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)