On Mon, 18 Aug 2025, Eike Mueller via petsc-users wrote:

> Dear PETSc developers,
> 
> I need to install petsc4py on a specific machine for teaching, and one of my 
> colleagues pointed out that this can be done with conda-forge using this: 
> https://urldefense.us/v3/__https://anaconda.org/conda-forge/petsc4py__;!!G_uCfscf7eWS!aObnO6iDXElFvWx8fXEjFR-baM6bUK1tm-qPqLb5kFKPoo_GYUC260Pm5WkJmanUStqmZ1HhWtmNudJeMLyxcg$
>  
> 
> Are you aware of any problems with this approach? It’s not listed as an 
> option under the petsc4py installation instructions 
> https://urldefense.us/v3/__https://petsc.org/release/petsc4py/install.html__;!!G_uCfscf7eWS!aObnO6iDXElFvWx8fXEjFR-baM6bUK1tm-qPqLb5kFKPoo_GYUC260Pm5WkJmanUStqmZ1HhWtmNudKT9XFvlA$
>   .

Hm we have conda (conda-forge) listed for PETSc at 
https://urldefense.us/v3/__https://petsc.org/release/install/__;!!G_uCfscf7eWS!YT8MIxLRgM1M4EgDQyr_BM0VkjMdsGa8sKUiEY6MeTB0XmurcA8ihfNry-uSv2zR1bQR7n-ceTf9ue71hwpmgSTl8a4$
 

> I had tried these first, but the pip install of petsc/petsc4py didn’t work. 

It usually requires PETSc installed correctly. Some of us developers just 
install PETSc+PETSc4py via:

./configure [PETSc configure options] --with-petsc4py=1

> The install via anaconda/conda-forge did give me a working petsc4py, however. 
> My colleague says that he also successfully used it on google collab.

Good to know.

Thanks!
Satish

> 
> Thank you very much,
> 
> Eike
> 

Reply via email to