安装Pycgns Python软件包后,如何在Windows 10上打开和查看CGNS文件?

发布于 2025-02-06 22:47:58 字数 1048 浏览 0 评论 0原文

从Anaconda分发安装Pycgns Python软件包后,我无法按照以下页面在以下页面中使用命令行cgns.navs.navcg_look

用nav浏览cgns树

=“ https://pycgns.github.io/introduction.html” rel =“ nofollow noreferrer bash,powershels或cmd:

CGNS.NAV: FATAL error, cannot import qtpy.QtCore...

提示:

  1. pyqt5已经安装

  2. print(sys.path)

'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']

After installing PyCGNS python package from Anaconda distribution, I am not able to open CGNS files as recommended in the following pages using the command line CGNS.NAV or cg_look:

Browsing your CGNS tree with NAV

Here is the error message I am receiving whether I am running the command line in Git Bash, Powershels, or CMD:

CGNS.NAV: FATAL error, cannot import qtpy.QtCore...

Hints:

  1. pyqt5 is already installed

  2. print(sys.path)

'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']

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半山落雨半山空 2025-02-13 22:47:58

您需要安装PYQT。
从Anaconda Navigator(在主菜单中)打开CMD.EXE提示。

执行此命令:

conda install pyqt5

如果您已经安装了它,则可能不在您的环境中。

请发布以下输出:

print(sys.path)

找出安装pyqt5的位置,然后将其广告到您的路径驱动器上。您会在互联网中找到Howto的大量。这是其中之一(来源: https://www.educative.io/edpresso/how-to-to-add-python-to-path-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 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.

You need to install PyQT.
Open the cmd.exe prompt from the anaconda navigator (in the home menu).

Execute this command:

conda install pyqt5

If you already had install it, maybe it's not in your enviroment.

Please post the output from:

print(sys.path)

Find out where PyQt5 is installed and ad it to your path-enviroment. You will find plenty of howto's in the internet. Here is one of them (Source: 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 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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文