win11系统
之间运行 $ pip install bezier 会有如下错误:
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
The BEZIER_INSTALL_PREFIX environment variable must be set.
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
重点来了
pip 安装(推荐!)
set BEZIER_NO_EXTENSION=true & pip install bezier
本地安装
(不能运行下边的代码的直接下载github上的.zip压缩包,解压即可)
git clone https://github.com/dhermes/bezier.git
进入文件夹bezier,在地址栏输入 cmd (代替目录地址),然后enter(最后有一个点 . 别漏了!)
set BEZIER_NO_EXTENSION=true & pip install .