What do you have for: which python echo $PYTHONPATH
The following might work.. PYTHONPATH='' /usr/bin/python ./configure --with-cc=gcc --with-cxx=0 --with-fc=0 --download-f2cblaslapack --download-mpich Satish On Wed, 24 May 2017, 李瑞 wrote: > > Dear professor or engineer: > I meet a problem about installation to petsc. > When I type the code "./configure --with-cc=gcc --with-cxx=0 --with-fc=0 > --download-f2cblaslapack --download-mpich" on my terminal,the answer reveals > the following results. > > >>>ERROR:root:code for hash md5 was not found. > Traceback (most recent call last): > File > "/home/zhuizhuluori/lirui/software/vapor-2.5.0-Linux_x86_64/vapor/vapor-2.5.0/lib/python2.7/hashlib.py", > line 139, in <module > globals()[__func_name] = __get_hash(__func_name) > File > "/home/zhuizhuluori/lirui/software/vapor-2.5.0-Linux_x86_64/vapor/vapor-2.5.0/lib/python2.7/hashlib.py", > line 91, in __get_builtin_constructor > raise ValueError('unsupported hash type ' + name) > ValueError: unsupported hash type md5 > ERROR:root:code for hash sha1 was not found ..... > > I have used petsc for a long time,and never see the this problem.my laptop > is installed an old version of petsc and I wanna change it to a new > version.How can I fix it?Thanks for your heartful suggestion! > > > > > >