问题描述
我的计算机上安装了Anaconda.但是,当我打开Spyder时,它看起来很糟糕,因为DPI很高.我被告知运行QT_SCALE_FACTOR=2.5 spyder
来解决问题.但是,我回来了'QT_SCALE_FACTOR' is not recognized as an internal or external command, operable program or batch file.
,这令人沮丧,因为我通过Anaconda安装了pyqt
.这也是我的路径C:\...\Anaconda3\Lib\site-packages\PyQt5
的一部分如果我呼叫qmake -query
,我会得到:
I have Anaconda installed on my computer. When I open Spyder though, it looks terrible because the DPI is high. I've been told to run QT_SCALE_FACTOR=2.5 spyder
to solve the problem. However, I get back 'QT_SCALE_FACTOR' is not recognized as an internal or external command, operable program or batch file.
This is frustrating because I have pyqt
installed through Anaconda. It's also part of my path C:\...\Anaconda3\Lib\site-packages\PyQt5
If I call qmake -query
, I get:
qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:C:/Users/.../Anaconda3/Library
QT_INSTALL_ARCHDATA:C:/Users/.../Anaconda3/Library
QT_INSTALL_DATA:C:/Users/.../Anaconda3/Library
QT_INSTALL_DOCS:C:/Users/.../Anaconda3/Library/doc
QT_INSTALL_HEADERS:C:/Users/.../Anaconda3/Library/include/qt
QT_INSTALL_LIBS:C:/Users/.../Anaconda3/Library/lib
QT_INSTALL_LIBEXECS:C:/Users/.../Anaconda3/Library/bin
QT_INSTALL_BINS:C:/Users/.../Anaconda3/Library/bin
QT_INSTALL_TESTS:C:/Users/.../Anaconda3/Library/tests
QT_INSTALL_PLUGINS:C:/Users/.../Anaconda3/Library/plugins
QT_INSTALL_IMPORTS:C:/Users/.../Anaconda3/Library/imports
QT_INSTALL_QML:C:/Users/.../Anaconda3/Library/qml
QT_INSTALL_TRANSLATIONS:C:/Users/.../Anaconda3/Library/translations
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:C:/Users/.../Anaconda3/Library/examples
QT_INSTALL_DEMOS:C:/Users/.../Anaconda3/Library/examples
QT_HOST_PREFIX:C:/Users/.../Anaconda3/Library
QT_HOST_DATA:C:/Users/.../Anaconda3/Library
QT_HOST_BINS:C:/Users/.../Anaconda3/Library/bin
QT_HOST_LIBS:C:/Users/.../Anaconda3/Library/lib
QMAKE_SPEC:win32-msvc2015
QMAKE_XSPEC:win32-msvc2015
QMAKE_VERSION:3.0
QT_VERSION:5.6.2
如您所见,看来我已经安装好了.我怎么不能打电话给QT_SCALE_FACTOR
?我怎样才能正确地做到这一点?谢谢! (顺便说一句,如果有帮助,我正在运行Windows 10.)
So as you can see, it appears I have it installed just fine. How come I can't call QT_SCALE_FACTOR
? How can I do that correctly? Thanks! (Incidentally, I'm running Windows 10 if that helps.)
推荐答案
在Windows控制台(cmd.exe)中运行下一个命令:
Run next commands in windows console (cmd.exe):
set QT_SCALE_FACTOR=2.5
spyder
这篇关于如何致电QT_SCALE_FACTOR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!