gpt4 book ai didi

pdf - "ebook-convert"未安装如何解决?

转载 作者:行者123 更新时间:2023-12-03 23:14:29 28 4
gpt4 key购买 nike

我想将 .md 转换为 PDF,我关注了 https://toolchain.gitbook.com/ebook.html :

Download the Calibre application. After moving the calibre.app to your Applications folder create a symbolic link to the ebook-convert tool:

$ sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/bin


然后我得到了这个:
HF:The-North-Book wonderful$ sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/bin
Password:
ln: /usr/bin/ebook-convert: File exists
HF:The-North-Book wonderful$ PATH
-bash: PATH: command not found
HF:The-North-Book wonderful$ gitbook pdf ./ ./mybook.pdf
info: 7 plugins are installed
info: 6 explicitly listed
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 26 pages
info: found 0 asset files

InstallRequiredError: "ebook-convert" is not installed.
Install it from Calibre: https://calibre-ebook.com
虽然我确实安装了 calibre 2,所以我不知道问题出在哪里。有人可以帮助我吗?

最佳答案

您可以使用 安装它自制 :

brew cask install calibre

如果你没有木桶:
brew tap caskroom/cask

然后就可以正常使用了
 ebook-convert ~/path_to/file.pdf ~/new_file_path/gen_file.pdf (options)

关于pdf - "ebook-convert"未安装如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41258939/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com