首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在安装PyCGNS python包后在Windows 10上打开和查看CGNS文件?

如何在安装PyCGNS python包后在Windows 10上打开和查看CGNS文件?
EN

Stack Overflow用户
提问于 2022-06-10 21:06:27
回答 1查看 91关注 0票数 1

在从Anaconda发行版安装PyCGNS python包后,我无法使用命令行CGNS.NAVcg_look打开以下页面中推荐的CGNS文件

使用NAV浏览CGNS树

无论是在Git Bash、Powershels还是CMD中运行命令行,都会收到以下错误消息:

代码语言:javascript
运行
复制
CGNS.NAV: FATAL error, cannot import qtpy.QtCore...

提示:

  1. pyqt5已经安装
  2. 打印(sys.path)
代码语言:javascript
运行
复制
'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']
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-10 21:11:37

您需要安装PyQT。从anaconda导航器(在主菜单中)打开cmd.exe提示符。

执行以下命令:

conda install pyqt5

如果你已经安装了它,也许它不在你的环境中。

请张贴的输出来自:

代码语言:javascript
运行
复制
print(sys.path)

找出PyQt5的安装位置,并将其发布到您的路径环境中。你会在网上找到很多如何操作的方法。以下是其中之一(来源:https://www.educative.io/edpresso/how-to-add-python-to-path-variable-in-windows):

代码语言:javascript
运行
复制
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 o​n 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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72579848

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档