Il giorno lun 18 ago 2025 alle ore 15:00 Eike Mueller via petsc-users <
petsc-users@mcs.anl.gov> ha scritto:

> 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!fQAEr8wAGM70H_zFHV7LthaM1y__6NUa2lRLnml_eARS9RWvdY52k7tV2UIogJ_G7Dgjj5mDZ_8hGQW8lVgxbV-j_0ZzvNE$
>  
> <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?
>

Based on personal experience, you may encounter issues sometimes using the
conda compilers and trying to compile PETSc applications.
But if you plan to just use petsc4py, there won't be any problems.


> 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!fQAEr8wAGM70H_zFHV7LthaM1y__6NUa2lRLnml_eARS9RWvdY52k7tV2UIogJ_G7Dgjj5mDZ_8hGQW8lVgxbV-jbKVQpCc$
>  
> <https://urldefense.us/v3/__https://petsc.org/release/petsc4py/install.html__;!!G_uCfscf7eWS!aObnO6iDXElFvWx8fXEjFR-baM6bUK1tm-qPqLb5kFKPoo_GYUC260Pm5WkJmanUStqmZ1HhWtmNudKT9XFvlA$>
>  .
> I had tried these first, but the pip install of petsc/petsc4py didn’t work.
>

That is supposed to install petsc and petsc4py automatically and should
work. Can you attach some failing logs?


> 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.
>
> Thank you very much,
>
> Eike
>


-- 
Stefano

Reply via email to