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

推荐订阅源

Spread Privacy
Spread Privacy
大猫的无限游戏
大猫的无限游戏
F
Fortinet All Blogs
M
MIT News - Artificial intelligence
G
Google Developers Blog
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
V
Visual Studio Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
TaoSecurity Blog
TaoSecurity Blog
Webroot Blog
Webroot Blog
Hugging Face - Blog
Hugging Face - Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
W
WeLiveSecurity
C
CERT Recently Published Vulnerability Notes
Y
Y Combinator Blog
S
Schneier on Security
Recent Announcements
Recent Announcements
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
宝玉的分享
宝玉的分享
T
Troy Hunt's Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
N
News and Events Feed by Topic
A
About on SuperTechFans
小众软件
小众软件
K
Kaspersky official blog
Help Net Security
Help Net Security
V2EX - 技术
V2EX - 技术
P
Proofpoint News Feed
S
Secure Thoughts
IT之家
IT之家
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
I
Intezer
NISL@THU
NISL@THU
GbyAI
GbyAI
P
Privacy & Cybersecurity Law Blog
T
Threatpost
C
Check Point Blog
Forbes - Security
Forbes - Security
C
Cisco Blogs
AI
AI
Recorded Future
Recorded Future
F
Full Disclosure

良的世界

达梦数据库主备集群动态增加实时备库 – 良的世界 达梦数据库SQL报错之远程操作符执行失败 – 良的世界 达梦数据库的审计功能 – 良的世界 达梦数据库在同一服务器上配置多个 AP 服务 – 良的世界 达梦数据库中常用的系统视图 – 良的世界 达梦数据库服务器的磁盘I/O监控指南 – 良的世界 SQL优化之注入HINT – 良的世界 达梦数据库的重做日志 – 良的世界 达梦数据库授予其他用户下创建表的权限 – 良的世界 达梦的回滚表空间ROLL – 良的世界 达梦数据库的作业系统 – 良的世界
Windows环境安装dmPython时报错:error: Microsoft Visual C++ 14.0 or greater is required. – 良的世界
shine · 2026-02-25 · via 良的世界

本文于 108 天前发布,最后更新于 82 天前

一、问题概述

当使用内网Windows环境安装dmPython时由于环境中没有Microsoft Visual C++ 14.0导致报错。

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

二、问题分析

利用有网络的Windows服务器安装同版本Python,对dmPython源码进行编译,生成whl文件。再将whl文件拿到离线环境进行安装。

三、解决步骤

3.1 安装同版本Python

https://www.python.org/downloads

3.2 下载dmPython源码

官网下载地址:https://www.dameng.com/download/index.html

或直接访问:https://gitee.com/DamengDB/dmPython

3.3 编译生成whl文件

PS C:\dmPython-main> python setup.py bdist_wheel

whl文件位于dmPython-main\dist目录下

报错的话可能是没有安装模块

python -m pip install –upgrade wheel setuptools

3.4 将whl文件在离线环境安装

PS C:\dmPython-main\dist> pip install .\dmpython-2.5.26-cp313-cp313-win_amd64.whl

3.5 编写程序进行测试

import dmPython
conn=dmPython.connect(user='SYSDBA',password='SYSDBA',server= '192.168.10.10',port=5236)
cursor = conn.cursor()
cursor.execute('select username from dba_users')
values = cursor.fetchall()
print(values)
cursor.close()
conn.close()

四、其他思路

从可以联网的机器上制作离线包,然后传输到离线环境进行安装Microsoft Visual C++以解决报错问题。

4.1 联网机器获取 vs_buildtools.exe

下载地址:https://aka.ms/vs/17/release/vs_BuildTools.exe

4.2 联网机器制作离线包

打开命令行(cmd或PowerShell),导航到 vs_buildtools.exe 所在的目录,执行以下命令来下载完整的离线安装文件。

PS C:\Downloads> .\vs_BuildTools.exe --layout C:\vs2022_offline --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --lang zh-CN

--layout C:\vs2022_offline指定将完整的离线安装包下载到本地的 C:\vs2022_offline 文件夹,下载完成后,将整个 C:\vs2022_offline 文件夹(确保包含所有文件)拷贝到你的离线目标机上。

4.3 离线机器上安装

在离线机上,以管理员身份打开 PowerShell,进入离线包目录,然后运行

PS C:\vs2022_offline> .\vs_setup.exe --noweb --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended

|´・ω・)ノ

ヾ(≧∇≦*)ゝ

(☆ω☆)

(╯‵□′)╯︵┴─┴

 ̄﹃ ̄

(/ω\)

∠( ᐛ 」∠)_

(๑•̀ㅁ•́ฅ)

→_→

୧(๑•̀⌄•́๑)૭

٩(ˊᗜˋ*)و

(ノ°ο°)ノ

(´இ皿இ`)

⌇●﹏●⌇

(ฅ´ω`ฅ)

(╯°A°)╯︵○○○

φ( ̄∇ ̄o)

ヾ(´・ ・`。)ノ"

( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃

(ó﹏ò。)

Σ(っ °Д °;)っ

( ,,´・ω・)ノ"(´っω・`。)

╮(╯▽╰)╭

o(*////▽////*)q

>﹏<

( ๑´•ω•) "(ㆆᴗㆆ)

😂

😀

😅

😊

🙂

🙃

😌

😍

😘

😜

😝

😏

😒

🙄

😳

😡

😔

😫

😱

😭

💩

👻

🙌

🖕

👍

👫

👬

👭

🌚

🌝

🙈

💊

😶

🙏

🍦

🍉

😣

Source: github.com/k4yt3x/flowerhd