
python
Rocky19890818
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
自己写的Python模块放到Linux里运行
# yum install zlib # yum install zlib-devel 下载成功后,进入python2.7的目录,重新执行 #make #make install 此时先前执行的 软连接仍旧生效 然后进入 setuptool目录, [root@localhost setuptools-5.2]# pythonnew setup...原创 2016-06-21 14:43:18 · 589 阅读 · 0 评论 -
用python ET解析xml,修改xml并保留标签前缀
[code="python"]# -*- coding: utf-8 -*- import xml.etree.ElementTree as ET ET.register_namespace("nms", "http://www.mycompany.com") tree = ET.parse(r"test.xml") root = tree.getroot() print len(r...原创 2016-07-12 14:12:16 · 2578 阅读 · 0 评论 -
Centos 6.4 python 2.6 升级到 2.7
参考 [url]http://blog.youkuaiyun.com/jcjc918/article/details/11022345[/url] 首先,查看centos6.4里的python的版本 [code="shell"]#python -V[/code] 得到 Python 2.6.6 下载Python-2.7.9的tgz包 解压[code="shell"]#tar -zxf Pyt...原创 2016-07-21 13:25:18 · 191 阅读 · 0 评论 -
解决Python ImportError: cannot import name HTTPSHandler
参考 [url]http://lovesoo.org/resolve-the-python-importerrorcannot-import-name-httpshandler.html[/url] [url]http://jingyan.baidu.com/article/e52e3615aba39640c60c51c3.html[/url] 安装好pip后,运行pip install py...原创 2016-07-21 16:37:32 · 1486 阅读 · 0 评论 -
Centos6.4安装python工具pip
参考 [url]http://www.linuxde.net/2014/05/15576.html[/url] 直接 yum install pip 或者 yum install python-pip都是不行的 其实不能yum那就直接下载编译安装呗。。。 CentOS 6.4安装pip,CentOS安装python包管理安装工具pip的方法如下: wget --no-ch...原创 2016-07-21 16:45:10 · 274 阅读 · 0 评论