Installationsfehler für matplotlib und Getfem zu Python 3.9.0 mit dem Befehl pip [duplicate]

Nov 01 2020

Fehler für matplotlib: FEHLER: Befehl mit Exit-Status 1 fehlgeschlagen: Befehl: 'c: \ Benutzer \ Dell \ AppData \ Local \ Programme \ Python \ Python39 \ python.exe' -c 'Import System, Setuptools, Tokenize; sys.argv [0] = '"'" 'C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-install-lk203f52 \ kiwisolver \ setup.py' "'"'; file = '"'" 'C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-install-lk203f52 \ kiwisolver \ setup.py' "'"'; f = getattr (tokenize, '"'" 'open' "'"', open) ( Datei ); code = f.read (). replace ('' '' \ r \ n '' '', '' '' '\ n' '' ''); f.close (); exec (kompilieren (Code, Datei , '"' '' exec '"' '')) 'egg_info --egg-base' C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip- pip-egg-info-6zgl71vj 'cwd: C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-install-lk203f52 \ kiwisolver
Vollständige Ausgabe (44 Zeilen): WARNUNG: Das Radpaket ist nicht verfügbar. FEHLER: Befehl mit Exit-Status 1 fehlerhaft: Befehl: 'c: \ users \ dell \ appdata \ local \ programme \ python \ python39 \ python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" 'C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-Wheel-pnxvu50s \ cppy \ setup.py' "'"'; file = '"'" 'C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-rad-pnxvu50s \ cppy \ setup.py' "'"'; f = getattr (tokenize, '"'" 'open' "'"', open) ( Datei ); code = f.read (). replace ('' '' \ r \ n '' '', '' '' '\ n' '' ''); f.close (); exec (kompilieren (Code, Datei , '"'" 'exec' "'"')) 'bdist_wheel -d' C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-Wheel-gic8wjko 'cwd: C: \ Benutzer \ DELL \ AppData \ Local \ Temp \ pip-Wheel-pnxvu50s \ cppy
Vollständige Ausgabe (6 Zeilen): Verwendung: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ... ] oder: setup.py --help [cmd1 cmd2 ...] oder: setup.py --help-Befehle oder: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for cppy
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
    subprocess.check_call(cmd)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\dell\\appdata\\local\\programs\\python\\python39\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DELL\\AppData\\Local\\Temp\\tmph6ki1vco', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver\setup.py", line 59, in <module>
    setup(
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 164, in setup
    _install_setup_requires(attrs)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 159, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py", line 699, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 779, in resolve
    dist = best[req.key] = env.best_match(
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 1064, in best_match
    return self.obtain(req, installer)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\pkg_resources\__init__.py", line 1076, in obtain
    return installer(requirement)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\dist.py", line 758, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "c:\users\dell\appdata\local\programs\python\python39\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['c:\\users\\dell\\appdata\\local\\programs\\python\\python39\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DELL\\AppData\\Local\\Temp\\tmph6ki1vco', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.
----------------------------------------

FEHLER: Befehl mit Exit-Status 1 fehlgeschlagen: python setup.py egg_info Überprüfen Sie die Protokolle auf vollständige Befehlsausgabe.

Fehler für getfem: FEHLER: Es konnte keine Version gefunden werden, die die Anforderung getfem erfüllt (ab Version: keine). FEHLER: Für getfem wurde keine passende Verteilung gefunden

Kann mir jemand vorschlagen, wie ich diese Probleme beheben kann?

Antworten

1 aniket Nov 01 2020 at 09:59

Leider gibt es keine Lösung, da matplotlib von Python 3.9 noch nicht unterstützt wird

Sie können dies lösen, indem Sie Ihre Python-Version auf 3.85 oder 3.5 herabsetzen

Eigentlich ist Python 3.9 neu, deshalb wird das Rad von der Matplotlib nicht unterstützt