![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
韩半仙
这个作者很懒,什么都没留下…
展开
-
pyenv安装python工具报错:“ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?”
使用pyenv install xxxx安装python软件版本时,报错:“ ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?原创 2022-08-05 17:46:13 · 5228 阅读 · 3 评论 -
python实现rar解压和压缩
1、前期准备python解压rar格式文件,需要安装rarfile模块,去网上下载rarfile,我这里下载的是rarfile-2.4.tar.gz,解压还需要对应的UnRAR.exe2、工具安装 将rarfile-2.4.tar.gz拷贝到python安装路径的Scripts目录下:cmd进入到python的Scripts目录下运行pip install rarfile-2.4.tar.gz,安装成功如下图:3、解压rarimport osimport rarfilebase_p原创 2021-09-09 09:16:31 · 21323 阅读 · 0 评论 -
Python读写word和ini配置文件
# -*- coding: utf-8 -*-import tkinter as tkimport osimport sysimport configparserfrom tkinter import messageboxfrom tkinter import filedialogfrom docx import Documentclass Window: def __init__(self,handle): self.win = handle原创 2021-06-24 17:29:30 · 165 阅读 · 0 评论 -
Python读取excel报错:“Excel xlsx file; not supported”
是因为安装的xlrd版本异常导致。原因:xlrd更新到了2.0.1版本,只支持.xls文件,不支持.xlsx。解决方法:降级安装xlrdD:\Python\Python37\Scripts>pip uninstall xlrdUninstalling xlrd-2.0.1: Would remove: d:\python\python37\lib\site-packages\xlrd-2.0.1.dist-info\* d:\python\python37\lib\s原创 2021-06-23 21:35:37 · 6741 阅读 · 0 评论