惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
Project Zero
Project Zero
L
LINUX DO - 最新话题
C
Cisco Blogs
P
Privacy International News Feed
S
Schneier on Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security @ Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
Webroot Blog
Webroot Blog
K
Kaspersky official blog
Help Net Security
Help Net Security
博客园_首页
Security Archives - TechRepublic
Security Archives - TechRepublic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
雷峰网
雷峰网
The Last Watchdog
The Last Watchdog
WordPress大学
WordPress大学
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
A
Arctic Wolf
I
Intezer
V
V2EX
博客园 - 【当耐特】
Latest news
Latest news
T
Tenable Blog
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
Cyberwarzone
Cyberwarzone
量子位
G
GRAHAM CLULEY
T
Troy Hunt's Blog
博客园 - Franky
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 三生石上(FineUI控件)
TaoSecurity Blog
TaoSecurity Blog
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Jina AI
Jina AI
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Scott Helme
Scott Helme

博客园 - CrossBug

fiddler右键集成生成python requests请求代码 随便存一下 不想跟上时间的步伐 pytesseract 修改源码后也报错f"{tesseract_cmd} is not installed or it's not in your PATH."解决方法 解决Can't open /usr/lib/grub/update-grub_lib 活了 世界无我 markdown_test 关于mimikatz在webshell运行 用户中心 - 博客园 可用性自动化V3 用户中心 - 博客园 关于sqlmap常用 思科设备各级密码: 关于时钟频率 Error when connecting to the GNS3 server: Cannot connect to http://127.0.0.1:3080. Please check if GNS3 is allowed in your antivirus and firewall. And that server version is 2.1.8. GNS3 Could桥接本地网卡报错:unable to create NIO Ethernet for bridge ' Error opening adapter: centos安装GNS3 GNS3 IOU VM
python3.12 源码静态编译解决AttributeError: module 'sys' has no attribute 'winver'
CrossBug · 2025-07-04 · via 博客园 - CrossBug

由于静态编译,python无法从dll获取版本号,导致报错:
AttributeError: module 'sys' has no attribute 'winver'
cpython-3.12.11\Python\sysmodule.c
错误导致处

#ifdef MS_COREDLL
    SET_SYS("dllhandle", PyLong_FromVoidPtr(PyWin_DLLhModule));
    SET_SYS_FROM_STRING("winver", PyWin_DLLVersionString);
#endif

修改_PySys_InitCore函数处
可以直接搜索

SET_SYS_FROM_STRING("version", Py_GetVersion());

在下面加一条

SET_SYS_FROM_STRING("winver", Py_GetVersion());