ubuntu命令页列出了[医]毛霉,它可以是已安装,如下所示:
sudo apt-get update -y
sudo apt-get install -y brotli我正在努力弄清楚如何将这个包添加到Amazon中,它使用了来自这个yum install的包存储库
$ yum search "brotli"
Loaded plugins: priorities, update-motd, upgrade-helper
1072 packages excluded due to repository priority protections
Warning: No matches found for: brotli
No matches found这是官方的为brotli做谷歌回购,但我不知道如何在运行pip install brotli之后将其公开为CLI
发布于 2022-11-11 15:42:04
最后,我下载了存储库,并使用cmake在Amazon上安装了它。
yum -y groupinstall "development tools" # this installs a lot, you may not need.
yum install cmake
git clone --depth 1 https://github.com/google/brotli.git
mkdir out && cd out
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
cmake --build . --config Release --target install这创建了一个可以在/path/to/repo/out/installed/bin/brotli中使用的二进制(程序),所以我将它移到我的path ( mv /path/to/repo/out/installed/bin/brotli /usr/bin )中,然后我就可以开始了。你也可以在那之后删除克隆的回购。
我没有使用Pip版本,但您可能可以使用python3 -m brotli ...。不过只是猜测而已。
https://unix.stackexchange.com/questions/621243
复制相似问题