摘要:
解决办法: 安装libffi #centossudo yum install libffi-devel -y#Ubuntusudo apt install libffi-dev -y 重新编译安装python (以下方法可以安装多版本python) 1.wget https://www.python 阅读全文
posted @ 2021-05-27 14:06
JustInTime
阅读(88)
评论(0)
推荐(0)
摘要:
1.指定python安装虚拟环境 mkvirtualenv cloudnet --python=/home/hx/python376/bin/python3 cloudnet为你要创建的虚拟环境的名字,--python后面是基于你本机上哪个python创建的虚拟环境 2.安装多版本python 1. 阅读全文
posted @ 2021-05-27 14:05
JustInTime
阅读(385)
评论(0)
推荐(0)
摘要:
bug记录: xlrd.biffh.XLRDError: Excel xlsx file; not supported 原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。 可以安装旧版xlrd,在cmd中运行: pip 阅读全文
posted @ 2021-05-27 13:57
JustInTime
阅读(69)
评论(0)
推荐(0)
摘要:
可使用demjson 阅读全文
posted @ 2021-05-27 13:56
JustInTime
阅读(67)
评论(0)
推荐(0)
摘要:
查看防火墙开放了哪些端口、协议等 firewall-cmd --list-all 开放某个端口 在/etc/firewalld/zones/public.xml文件中添加<port protocol="tcp" port="开发的端口"/>一行 重启防火墙 systemctl restart fir 阅读全文
posted @ 2021-05-27 13:53
JustInTime
阅读(45)
评论(0)
推荐(0)
摘要:
import requests#请求的url url = "http://127.0.0.1:8282/inmesb/service"# 请求报文 payload = """ <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns 阅读全文
posted @ 2021-05-27 13:51
JustInTime
阅读(581)
评论(0)
推荐(0)
摘要:
使用网上的方法,在crontab中加入PYTHONIOENCODING=utf-8,并没有解决。 有效解决办法: * * * * * export LANG=zh_CN.utf-8;python yourScipt.py 在调用python脚本前先export LANG变量,他修改的是crontab 阅读全文
posted @ 2021-05-27 13:46
JustInTime
阅读(94)
评论(0)
推荐(0)

浙公网安备 33010602011771号