在从Anaconda发行版安装PyCGNS python包后,我无法使用命令行CGNS.NAV
或cg_look
打开以下页面中推荐的CGNS文件
无论是在Git Bash、Powershels还是CMD中运行命令行,都会收到以下错误消息:
CGNS.NAV: FATAL error, cannot import qtpy.QtCore...
提示:
'C:\\ProgramData\\Anaconda3\\Scripts', 'C:\\ProgramData\\Anaconda3\\python38.zi
p', 'C:\\ProgramData\\Anaconda3\\DLLs', 'C:\\ProgramData\\Anaconda3\\lib', 'C:\\
ProgramData\\Anaconda3', '', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages', '
C:\\ProgramData\\Anaconda3\\lib\\site-packages\\vboxapi-1.0-py3.8.egg', 'C:\\Pro
gramData\\Anaconda3\\lib\\site-packages\\win32', 'C:\\ProgramData\\Anaconda3\\li
b\\site-packages\\win32\\lib', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\
Pythonwin', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\IPython\\extensions
', 'C:\\Users\\user_name\\.ipython']
发布于 2022-06-10 21:11:37
您需要安装PyQT。从anaconda导航器(在主菜单中)打开cmd.exe提示符。
执行以下命令:
conda install pyqt5
如果你已经安装了它,也许它不在你的环境中。
请张贴的输出来自:
print(sys.path)
找出PyQt5的安装位置,并将其发布到您的路径环境中。你会在网上找到很多如何操作的方法。以下是其中之一(来源:https://www.educative.io/edpresso/how-to-add-python-to-path-variable-in-windows):
Right-clicking This PC and going to Properties.
Clicking on the Advanced system settings in the menu on the left.
Clicking on the Environment Variables button on the bottom right.
In the System variables section, selecting the Path variable and clicking on Edit. The next screen will show all the directories that are currently a part of the PATH variable.
Clicking on New and entering Python’s install directory.
https://stackoverflow.com/questions/72579848
复制相似问题