- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用pyinstaller打包一个exe文件。
在我的电脑(Win 10)上可以正常运行。
但是在别人的电脑上(Win 7)却显示
__main__.pyinstallerimporterror failed to load dynlib/dll "shcore".
关于shcore
,我用的是
import ctypes
PROCESS_PER_MONITOR_DPI_AWARE = 2
ctypes.windll.shcore.SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE)
我该怎么办?提前致谢。
最佳答案
支持的最低客户端为 SetProcessDpiAwareness
是 Windows 8.1。
In previous versions of Windows, there was no setting for
PROCESS_PER_MONITOR_DPI_AWARE
. Apps were either DPI unaware or DPI aware. Legacy applications that were classified as DPI aware before Windows 8.1 are considered to have aPROCESS_DPI_AWARENESS
setting ofPROCESS_SYSTEM_DPI_AWARE
in current versions of Windows.
您只能使用SetProcessDPIAware
设置系统 DPI 感知
关于python - __main__.pyinstallerimporterror 无法加载 dynlib/dll "shcore",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60315287/
我通过 CRAN 在我的 Mac 上安装了 R .我也通过 homebrew 安装了 openblas .我可以按如下方式在 BLAS 实现之间切换: 引用 blas(我认为是 netlib): ln
我使用pyinstaller打包一个exe文件。 在我的电脑(Win 10)上可以正常运行。 但是在别人的电脑上(Win 7)却显示 __main__.pyinstallerimporterror f
当我 我正在努力制作 .exe 文件。错误消息显示它在第 9 行有问题,所以我检查了我的代码。有导入的库“pylibdmtx”,用于解码数据矩阵。 所以我尝试删除有关该库的所有内容以及其他相关属性,然
当我 我正在努力制作 .exe 文件。错误消息显示它在第 9 行有问题,所以我检查了我的代码。有导入的库“pylibdmtx”,用于解码数据矩阵。 所以我尝试删除有关该库的所有内容以及其他相关属性,然
我是一名优秀的程序员,十分优秀!