
Python
GZMetrics
啦啦啦
展开
-
Centos7 脚本自动化安装 Python 3 和 pip
Ceontos 脚本自动化安装 Python 3 和 pip复制到 shell 直接执行即可。# 安装 python 3sudo yum -y install python36rm -f /usr/bin/pythonln -s /usr/bin/python3 /usr/bin/python# 解决安装 python 3 之后 yum 报错问题cp /usr/bin/yum /usr/bin/yum.bakcp /usr/libexec/urlgrabber-ext-down /usr原创 2020-07-22 11:21:33 · 739 阅读 · 0 评论 -
hanlp 安装、报错及解决方式、体验
安装pip install hanlp报错及解决方案RuntimeError: Unsupported compiler – at least C++0x support is needed!yum install -y gcc-c++< Python.h > :没有那个文件或目录/usr/local/lib/python3.6/site-packages/pybind11/include/pybind11/detail/common.h:112:20: 致命错误:Python.h原创 2020-07-22 20:37:53 · 3716 阅读 · 1 评论 -
python 中 pymysql 的连接、查询、读取数据
源码import pymysql# 配置连接信息conn = pymysql.connect(host="192.168.101.112", user="root", password="root", database="loganalysis", charset="utf8")# 获取连接执行器cursor = conn.cursor()# 编写 sqlsql = """select * from ip limit 10;"""# 执行SQL语句cursor.execute(原创 2020-07-22 11:57:22 · 1254 阅读 · 0 评论