![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3
FuckWindowsError
FuckWindowsError
展开
-
pip编译安装pillow命令
pip install Pillow-8.3.1.tar.gz --global-option="build_ext" --global-option="--disable-zlib" --global-option="--disable-jpeg" --compiler=msvc原创 2022-02-19 11:04:22 · 1082 阅读 · 0 评论 -
pypy3无法安装pycryptodome【死活报错cl.exe failed with exit status 2】的解决方案
由于用vc++build编译死活报错:cl.exe failed with exit status 2所以只能下载mingw64并把bin加入环境变量在pypy安装文件夹\lib-python\3\distutils文件夹新建distutils.cfg内容为[build] compiler=mingw32打开lib-python\3\distutils\cygwinccompiler.py跳转140行把这里的-mcygwin 都删除。 .原创 2021-07-29 14:56:05 · 766 阅读 · 0 评论 -
numba ERROR:NameError: global name '_call_' is not defined
bug10x64are not support numba原创 2019-04-20 23:15:21 · 602 阅读 · 0 评论 -
numba.errors.NotDefinedError: Failed in object mode pipeline (step: analyzing bytecode) [1mVariable
numba.errors.NotDefinedError: Failed in object mode pipeline (step: analyzing bytecode)[1mVariable '$48.2' is not defined.[0mUnsupported Python functionality was found in the code Numba was trying t...原创 2019-04-21 10:49:16 · 3185 阅读 · 1 评论 -
No module named 'reduce'
import functoolsfunctools.reduce()原创 2019-04-21 12:11:01 · 457 阅读 · 0 评论 -
TypeError: can only concatenate tuple (not "str") to tuple (python)
死活报错,找不出原因最后终于发现源于赋值错误:self.searchText='',searchTextMDZZ原创 2019-04-26 23:48:13 · 2576 阅读 · 0 评论 -
NameError: name 'ConfigParser' is not defined
import configparserconfig = configparser.ConfigParser()TheConfigParsermodule has been renamed toconfigparserin Python 3. The2to3tool will automatically adapt imports when converting your sou...原创 2019-04-24 12:07:51 · 3793 阅读 · 0 评论 -
git删除某次提交(某个commit)的方法
input>git logout>fatal: your current branch 'master' does not have any commits yetinput > git rebase -i xxxout>invalid upstream input > git rebase -i xxxXXXXXXXXXXXXXXXout>...原创 2019-04-24 14:24:50 · 7069 阅读 · 0 评论 -
pentestdb渗透辅助工具错误:Namespace' object has no attribute 'func'
没有输入参数原创 2019-04-20 10:28:24 · 4888 阅读 · 4 评论 -
No module named 'wordpress_xmlrpc'
若文件名为abc.py换个文件名原创 2019-05-28 12:14:34 · 645 阅读 · 0 评论 -
(-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'cv::point
OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\shapedescr.cpp:743: error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'cv::...原创 2019-04-20 22:27:28 · 5452 阅读 · 12 评论 -
timeout-decorator ERROR:AttributeError: module 'signal' has no attribute 'SIGALRM'
timer signals can not be used in Windows at all.You might use this decorator with option use_signals=False,or You might use my fork - there the signals are disabled by default in windows :https://gi...原创 2019-04-09 14:45:05 · 2829 阅读 · 0 评论 -
AttributeError: 'staticmethod' object has no attribute '__name__'
@jit @retry(tries=10) @staticmethod改为 @staticmethod @jit @retry(tries=1)原创 2019-04-09 13:35:44 · 1991 阅读 · 0 评论 -
python.exe应用程序错误
原因不明部分情况下用requests.Session()代替requests.get能解决原创 2019-01-11 00:01:30 · 2619 阅读 · 1 评论 -
关于百度V3人脸检测返回结果不完整
提交 工单后才知道需要填写的字段是face_field,而不是face_fields,参数填错了原创 2019-01-03 12:03:05 · 399 阅读 · 0 评论 -
Python Requests Proxy error ::Failed to parse::
::Failed to parse::检查ip文件是否正常,也许被改成了1::1的格式原创 2019-01-18 13:40:27 · 4458 阅读 · 0 评论 -
python使用base64.b64encode报错:TypeError: 'str' does not support the buffer interface
改为:base64.b64encode('123'.encode('utf-8')).decode('utf-8')原创 2019-03-14 20:48:11 · 1571 阅读 · 0 评论 -
RuntimeWarning: types.FrameType size changed, may indicate binary incompatibility. Expected zd, got
D:\Program Files\Python3.4\lib\importlib\_bootstrap.py:321: RuntimeWarning: types.FrameType sizechanged, may indicate binary incompatibility. Expected zd, got zd然后垃圾连案例都搜不到原来是python3.4不支持g...原创 2019-03-11 10:28:12 · 209 阅读 · 0 评论 -
XP下使用submit text3遭遇死机强制重启导致以及代码数据丢失(无法读取源文件或磁盘)
经过:XP下使用submit text3编辑代码遭遇死机强制重启导致以及代码数据丢失症状:重启之后发现源文件存在但是使用submit text3打开为空白,无法复制,提示“无法读取源文件或磁盘”AutoSaveSession.sublime_session 这个文件一模一样的症状,于是使用chkdsk D:/f命令在重启修复磁盘D后,发现AutoSaveSessio...原创 2019-03-25 14:11:51 · 349 阅读 · 0 评论 -
关于python3死活报错:_io.TextIOWrapper' object is not callable
变量名使用了关键字input,改掉解决原创 2019-03-25 17:36:49 · 18717 阅读 · 0 评论 -
关于python使用selenum截图并用Image读取出现验证码重复的问题
症状:XP下使用selenum截取验证码并用Image读取反复为同一个验证码清理缓存就好了原创 2019-03-24 16:52:29 · 164 阅读 · 0 评论 -
numba ERROR:AssertionError: Failed in object mode pipeline (step: analyzing bytecode)
Exceptions can still be raised and they get propagated all the way up. You can still catch them in the non-jit function.Our current focus is in high-performance numeric code, such code rarely ...原创 2019-04-09 13:31:04 · 3939 阅读 · 0 评论 -
关于PYTHON使用with open配合For读取文件运行至For循环停止执行
try: with open(self.userList,'r') as f_username: UserListCount=len(list(f_username)) print(UserListCount) with open(self.passList,'r') as f_password : ...原创 2018-12-03 20:00:14 · 6555 阅读 · 2 评论