2

我正在尝试使用 Python网站上找到的方向安装 petsc4py,但出现错误。如何解决此找不到正确版本错误?我的总体目标是能够使用 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
4

1 回答 1

3

您在哪个平台上运行(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
于 2016-05-19T22:02:13.263 回答