From 45643476985f65e730c4906a719a3931849cd9bb Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 3 Jun 2024 22:45:08 +0800 Subject: [PATCH] docs: update manual install faq --- website/docs/install/manual.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/website/docs/install/manual.md b/website/docs/install/manual.md index a1d1370..cc80a19 100644 --- a/website/docs/install/manual.md +++ b/website/docs/install/manual.md @@ -58,3 +58,27 @@ pm2 start ./dist/src/server/main.js --name tianji ``` Default, `Tianji` will run on http://localhost:12345 + +# Frequently Asked Questions + +## Install `isolated-vm` failed + +If you are using python 3.12, its will report error like this: + +``` +ModuleNotFoundError: No module named 'distutils' +``` + +Its because of python 3.12 remove `distutils` from builtin module. now we have good resolution about it. + +You can switch your python version from 3.12 to 3.9 can resolve it. + +### How to resolve it in brew controlled python + +```bash +brew install python@3.9 +rm /opt/homebrew/bin/python3 +ln -sf /opt/homebrew/bin/python3 /opt/homebrew/bin/python3.9 +``` + +then you can check version with `python3 --version`