[petsc-users] Error in installation of petsc4py

arash rezaei arashrezaei96 at gmail.com
Thu May 6 00:48:05 CDT 2021


Hello,
I want to install pets4py
I use this command:

python -m pip install [--user] petsc petsc4py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210506/dfef9944/attachment.html>
-------------- next part --------------
CUsersArashpython -m pip install --user numpy mpi4py
Requirement already satisfied numpy in cusersarashappdataroamingpythonpython39site-packages (1.19.4)
Requirement already satisfied mpi4py in cusersarashappdataroamingpythonpython39site-packages (3.0.3)

CUsersArashpython -m pip install --user petsc petsc4py
Collecting petsc
  Using cached petsc-3.15.0.tar.gz (16.0 MB)
Collecting petsc4py
  Using cached petsc4py-3.15.0.tar.gz (2.1 MB)
Requirement already satisfied numpy in cusersarashappdataroamingpythonpython39site-packages (from petsc4py) (1.19.4)
Using legacy 'setup.py install' for petsc, since package 'wheel' is not installed.
Using legacy 'setup.py install' for petsc4py, since package 'wheel' is not installed.
Installing collected packages petsc, petsc4py
    Running setup.py install for petsc ... error
    ERROR Command errored out with exit status 1
     command 'CProgram FilesPython39python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '''CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py'''; __file__='''CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py''';f = getattr(tokenize, '''open''', open)(__file__) if os.path.exists(__file__) else io.StringIO('''from setuptools import setup; setup()''');code = f.read().replace('''rn''', '''n''');f.close();exec(compile(code, __file__, '''exec'''))' install --record 'CUsersArashAppDataLocalTemppip-record-c5j1b3k_install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'CUsersArashAppDataRoamingPythonPython39Includepetsc'
         cwd CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4af
    Complete output (28 lines)
    running install
    PETSc configure
    configure options
        --prefix=CUsersArashAppDataRoamingPythonPython39site-packagespetsc
        PETSC_ARCH=arch-python-win-amd64
        --with-shared-libraries=1
        --with-debugging=0
        --with-c2html=0
        --with-mpi=0
    'CProgram' is not recognized as an internal or external command,
    operable program or batch file.
    Traceback (most recent call last)
      File string, line 1, in module
      File CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py, line 293, in module
        setup(name='petsc',
      File CProgram FilesPython39libsite-packagessetuptools__init__.py, line 165, in setup
        return distutils.core.setup(attrs)
      File CProgram FilesPython39libdistutilscore.py, line 148, in setup
        dist.run_commands()
      File CProgram FilesPython39libdistutilsdist.py, line 966, in run_commands
        self.run_command(cmd)
      File CProgram FilesPython39libdistutilsdist.py, line 985, in run_command
        cmd_obj.run()
      File CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py, line 229, in run
        config(prefix, self.dry_run)
      File CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py, line 165, in config
        if status != 0 raise RuntimeError(status)
    RuntimeError 1
    ----------------------------------------
ERROR Command errored out with exit status 1 'CProgram FilesPython39python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '''CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py'''; __file__='''CUsersArashAppDataLocalTemppip-install-2pv0ftutpetsc_718bdaa5c0fd475eb4937d6b87c8c4afsetup.py''';f = getattr(tokenize, '''open''', open)(__file__) if os.path.exists(__file__) else io.StringIO('''from setuptools import setup; setup()''');code = f.read().replace('''rn''', '''n''');f.close();exec(compile(code, __file__, '''exec'''))' install --record 'CUsersArashAppDataLocalTemppip-record-c5j1b3k_install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'CUsersArashAppDataRoamingPythonPython39Includepetsc' Check the logs for full command output.


More information about the petsc-users mailing list