Python 如何修复在openmdao中安装petsc4py时出现的版本错误

Python 如何修复在openmdao中安装petsc4py时出现的版本错误,python,openmdao,petsc,Python,Openmdao,Petsc,我正试图用Python上的direction安装petsc4py,但我遇到了一个错误。如何修复此找不到正确版本错误?我的总体目标是能够使用openMDAO,但我需要从让petsc4py工作开始 下面是命令的输入,然后是我收到的错误 pip install petsc petsc4py Collecting petsc Could not find a version that satisfies the requirement petsc (from versions: ) No match

我正试图用Python上的direction安装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

您在哪个平台上运行(Windows、Linux、OSX)

我很幸运地在BitBucket repos上直接使用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
另请参阅以安装petsc。