在安装petsc4py以在openmd中使用时,如何修复版本错误

2024-09-27 22:32:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图安装petsc4py,方向在Python website上,但是我得到了一个错误。如何修复这个找不到正确版本的错误?我的总体目标是能够使用openMDAO,但我需要先让petsc4py正常工作。在

下面是命令的输入,然后是我收到的错误

pip install petsc petsc4py
Collecting petsc
  Could not find a version that satisfies the requirement petsc (from versions: )
No matching distribution found for petsc

Tags: installpip命令版本错误notwebsitefind
1条回答
网友
1楼 · 发布于 2024-09-27 22:32:37

您在哪个平台上运行(Windows、Linux、OS X)?在

我很幸运地在BitBucket回购上直接使用pip安装:

pip install  no-deps git+https://bitbucket.org/petsc/petsc@v3.5
pip install  no-deps git+https://bitbucket.org/petsc/petsc4py@3.5

相关问题 更多 >

    热门问题