python
幻翼之心
这位客官里面请
需要资源的请发邮件给我275184338@qq.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cx_Oracle.DatabaseError: DPI-1072: the Oracle Client library version is unsupported 已解决
python3在使用cx_Oracle的时候报错了,并且是一致都好好的,突然就报错。Traceback (most recent call last): File "D:/python/work/util/oracleTest.py", line 7, in <module> conn=cx_Oracle.connect('qtksequery','qtksequery',tns)cx_Oracle.DatabaseError: DPI-1072: the Oracle Cl原创 2020-08-13 16:54:45 · 10679 阅读 · 3 评论 -
cx_Oracle,cursor.execute(sql) 执行的时候编码错误:UnicodeEncodeError: 'ascii' codec can't encode character
用python连接Oracle,执行sql的时候如果条件有中文或者查询结果有中文,就会乱码,或者直接报错:UnicodeEncodeError: 'ascii' codec can't encode character一直以为是自己编码问题,,,,,,,,,,其实不是,是oracle客户端的字符编码设置不对。编写的python脚本中需要加入如下几句:import osos.e...原创 2020-03-27 23:04:53 · 2296 阅读 · 0 评论 -
Python chardet.detect卡、效率低、非常慢等
需求:打开用户上传的txt文件并读取内容,所以需要识别用户上传的txt文件的编码格式,用到了chardet.detect,能识别文件编码问题:chardet.detect太慢了,具体多慢大家自行测试,打开一个50mb的文件,差不多30秒才能识别出来!!!!解决:"""判断文件的编码格式"""with open(filePath, 'rb') as f: #filePath文...原创 2020-03-09 10:29:38 · 2285 阅读 · 0 评论 -
lingx系统ImportError: No module named cx_Oracle 解决方法
第一步:确认是否安装了cx_Oracle,我的是python3,lingx系统,安装的时候是默认安装的,所以执行如下命名: /usr/local/python3/bin/pip3 install cx_Oracle如果没有安装,会自动安装,如果已安装了,提示如下: Requirement already satisfied: cx_Oracle in /usr/local...原创 2019-11-18 15:50:11 · 925 阅读 · 0 评论 -
python3.7、python3.8安装, 解决pip is configured with locations that require TLS/SSL问题
问题:[root@localhost bin]# pip3 install mysqllpip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Collecting mysqll Retrying (Retry(total=4, c...原创 2019-11-06 14:04:31 · 3859 阅读 · 1 评论 -
PyCharm运行是报错:ModuleNotFoundError: No module named '_cffi_backend'
这个是少包了,安装一下:pip3 install cffi安装的时候提示已经有了!!!E:\python>pip3 install cffiRequirement already satisfied: cffi in d:\programdata\anaconda3\lib\site-packages (1.12.3)Requirement already satisfied: ...原创 2019-09-17 15:09:32 · 12165 阅读 · 9 评论
分享