使用pip命令将matplotlib和Getfem安装到Python 3.9.0的安装错误 [英] installation error for matplotlib and Getfem to Python 3.9.0 using pip command

查看:78
本文介绍了使用pip命令将matplotlib和Getfem安装到Python 3.9.0的安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ma​​tplotlib 的错误:错误:命令错误,退出状态为1:命令:'c:\users\dell\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize;sys.argv[0] = '"'"'C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver\setup.py'"'"';文件 ='``''''C:\ Users \ DELL \ AppData \ Local \ Temp \ pip-install-lk203f52 \ kiwisolver \ setup.pygetattr(tokenize, '"'"'open'""'"', open)(file);code=f.read().replace('"'"''\ r \ n',,",,","\ n",,",f; close(); exec(compile(code, file , '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\DELL\AppData\Local\Temp\pip-pip-egg-info-6zgl71vj'cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver
完整输出(44 行):警告:车轮套件不可用.错误:命令错误,退出状态为1:命令:'c:\ users \ dell \ appdata \ local \ programs \ python \ python39 \ python.exe'-u -c'import sys,setuptools,tokenize;sys.argv [0] ='"'" C:\ Users \ DELL \ AppData \ Local \ Temp \ pip-wheel-pnxvu50s \ cppy \ setup.py'"';';file='"'"'C:\Users\DELL\AppData\Local\Temp\pip-wheel-pnxvu50s\cppy\setup.py'"'"';f=getattr(tokenize,''''','open',''',',open)(文件); code = f.read().replace('\r\n'"'"', '"'""'\n'"'"');f.close();exec(compile(code, file,''''''exec''''``'))'bdist_wheel -d'C:\ Users \ DELL \ AppData \ Local \ Temp \ pip-wheel-gic8wjko'CWD:C:\ Users \ DELL \ AppData \ Local \ Temp \ pip-wheel-pnxvu50s \ cppy
完整输出(6行):用法:setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]或:setup.py --help [cmd1 cmd2 ...]或:setup.py --help-commands或:setup.py cmd --help

error for matplotlib: ERROR: Command errored out with exit status 1: command: 'c:\users\dell\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver\setup.py'"'"'; file='"'"'C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\DELL\AppData\Local\Temp\pip-pip-egg-info-6zgl71vj' cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-lk203f52\kiwisolver
Complete output (44 lines): WARNING: The wheel package is not available. ERROR: Command errored out with exit status 1: command: 'c:\users\dell\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\DELL\AppData\Local\Temp\pip-wheel-pnxvu50s\cppy\setup.py'"'"'; file='"'"'C:\Users\DELL\AppData\Local\Temp\pip-wheel-pnxvu50s\cppy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\DELL\AppData\Local\Temp\pip-wheel-gic8wjko' cwd: C:\Users\DELL\AppData\Local\Temp\pip-wheel-pnxvu50s\cppy
Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: 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.
----------------------------------------

错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出.

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

getfem 错误:错误:找不到满足getfem要求的版本(来自版本:无)错误:找不到与getfem匹配的分布

error for getfem: ERROR: Could not find a version that satisfies the requirement getfem (from versions: none) ERROR: No matching distribution found for getfem

谁能建议我如何纠正这些问题?

Can anyone suggest me how to rectify these issues?

推荐答案

抱歉没有解决方案,python 3.9 还不支持 matplotlib

你可以通过将你的python版本降级到3.85或3.5来解决这个问题

实际上 python 3.9 是新的这就是 matplotlib 不支持轮子的原因

actually python 3.9 is new that's why the wheel is not supported by the matplotlib

这篇关于使用pip命令将matplotlib和Getfem安装到Python 3.9.0的安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆