Hi Satish and Stefano,

Thank you for your prompt replies! Sorry, I hadn’t seen that there is conda 
option for petsc, only looked at petsc4py. pip install petsc failed due to 
missing BLAS libraries. It’s not so much a question of eventually installing it 
as finding a way that is simple and which students can follow, so knowing that 
there is no issue with petsc and petsc4py on conda-forge is already very 
helpful.

All coding will be done in Python and I’ll only use petsc4py, so won’t have to 
compile any PETSc C code.

All the best,

Eike

On 18 Aug 2025, at 14:20, Stefano Zampini <stefano.zamp...@gmail.com> wrote:

You don't often get email from stefano.zamp...@gmail.com. Learn why this is 
important<https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!ez8Nn_BYj2UcIPdVXqCPD-fd0eutgiyC7n6oplyX7USA18S1JCYY0ZwDAHZCLyjHmGMJXZE_khQkT0rVLljQOA$
 >
CAUTION:  This email came from outside of the University. To keep your account 
safe, only click on links and open attachments if you know the person who sent 
the email, or you expected to receive this communication.



Il giorno lun 18 ago 2025 alle ore 15:00 Eike Mueller via petsc-users 
<petsc-users@mcs.anl.gov<mailto: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!ez8Nn_BYj2UcIPdVXqCPD-fd0eutgiyC7n6oplyX7USA18S1JCYY0ZwDAHZCLyjHmGMJXZE_khQkT0qUw-4qhw$
 
<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!ez8Nn_BYj2UcIPdVXqCPD-fd0eutgiyC7n6oplyX7USA18S1JCYY0ZwDAHZCLyjHmGMJXZE_khQkT0qrFrbzSA$
 
<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