【问题标题】:I want to install matplotlib on pypy in windows but I cannot我想在 Windows 的 pypy 上安装 matplotlib 但我不能
【发布时间】:2021-05-02 21:25:20
【问题描述】:

我想在 windows 的 pypy 上安装 matplotlib,但我不能

这是我的错误:

Building wheel for pillow (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\pypy3.7-v7.3.4-win64\pypy3.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mypc\\AppData\\Local\\Temp\\pip-install-aldxfgwi\\pillow_36442a23e4bc45babfe05dc3de237b82\\setup.py'"'"'; __file__='"'"'C:\\Users\\mypc\\AppData\\Local\\Temp\\pip-install-aldxfgwi\\pillow_36442a23e4bc45babfe05dc3de237b82\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\mypc\AppData\Local\Temp\pip-wheel-sghjaqiu'

错误:命令出错,退出状态为 1: 'C:\pypy3.7-v7.3.4-win64\pypy3.exe' -u -c '导入io, os, sys, 设置工具,标记化; sys.argv[0] = '"'"'C:\Users\mypc\AppData\Local\Temp\pip-install-aldxfgwi\ 枕头_36442a23e4bc45babfe05dc3de237b82\setup.py'"'"'; 文件='"'"'C:\Users\mypc\AppData\Local\Temp\ pip-install-aldxfgwi\pillow_36442a23e4bc45babfe05dc3de237b82\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open) (file) if os.path.exists(file) else io.StringIO( '"'"'从 setuptools 导入 设置; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' 安装--记录 'C:\Users\mypc\AppData\Local\Temp\pip-record-185nr5jz\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\pypy3.7-v7.3.4-win64\include\pillow' 检查日志是否完整 命令输出。

【问题讨论】:

    标签: matplotlib pypy


    【解决方案1】:

    我在 PYPY 上安装 matplotlib 时遇到了同样的问题。原因是 matplotlib 的一些依赖项没有安装在 PYPY 中。我的解决方案是在 matplotlib 之前安装 numpy。这个对我有用。这里显示了命令:

    pip_pypy install numpy

    pip_pypy install matplotlib

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-02
      • 2014-05-14
      • 2021-07-25
      • 2023-01-16
      • 1970-01-01
      • 1970-01-01
      • 2017-07-09
      相关资源
      最近更新 更多