Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install requirements.txt 失败, matplotlib好像有问题,不知如何解决 #81

Open
syzbiaoren opened this issue Sep 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@syzbiaoren
Copy link

❓ Questions and Help

image

kdep_freetype2.c /Fobuild\temp.win-amd64-cpython-311\Release\src/checkdep_freetype2.obj
checkdep_freetype2.c
src/checkdep_freetype2.c(5): fatal error C1189: #error: "FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it."
error: command 'D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for matplotlib
Running setup.py clean for matplotlib
Building wheel for pyfolio (setup.py) ... done
Created wheel for pyfolio: filename=pyfolio-0.9.2+75.g4b901f6-py3-none-any.whl size=76257 sha256=5611161be7a75e1ee9756c357bac7c1c568bd1d4b32918795a3f806c54bc732c
Stored in directory: C:\Users\yingzhan\AppData\Local\Temp\pip-ephem-wheel-cache-k5749p0y\wheels\43\29\c0\fada91c23d1bcaae78968559c53c23724464577e09e68aeb36
Successfully built pyfolio
Failed to build matplotlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (matplotlib)

@syzbiaoren syzbiaoren added the question Further information is requested label Sep 6, 2024
@shinwa
Copy link

shinwa commented Oct 2, 2024

when runing with wsl2:
sudo apt-get install libfreetype6-dev pkg-config
may fix this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants