2

I am trying to install petsc4py with direction found on the Python website but I am getting an error. How do I fix this cant find correct version error? My overall goal is to be able to use openMDAO but I need to start with getting petsc4py working.

The following is the input of the command and then the error I am receiving

pip install petsc petsc4py
Collecting petsc
  Could not find a version that satisfies the requirement petsc (from versions: )
No matching distribution found for petsc
CodeGuyRoss
  • 786
  • 1
  • 10
  • 23
  • See also [this](http://stackoverflow.com/questions/33766356/openmdaov1-x-warning-parallel-derivs-not-running-under-mpi/33777360#33777360) to install petsc. – mrosemeier May 20 '16 at 19:02

1 Answers1

3

Which platform are you running on (Windows, Linux, OS X)?

I have had good luck with installing using pip directly on the BitBucket repos:

pip install --no-deps git+https://bitbucket.org/petsc/petsc@v3.5
pip install --no-deps git+https://bitbucket.org/petsc/petsc4py@3.5
thearn
  • 323
  • 3
  • 6