From 31d7aa7d08cd3bbc28308ed666b43da0ad140adc Mon Sep 17 00:00:00 2001 From: yiminghub2024 <482890@qq.com> Date: Sun, 27 Apr 2025 21:11:02 +0800 Subject: [PATCH 1/4] Update README.md conda can not install success as guide in centos7.9,need fix~ --- README.md | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 550a44d71..6be26d9ec 100644 --- a/README.md +++ b/README.md @@ -216,9 +216,36 @@ source .venv/bin/activate pip install -r requirements.txt --use-pep517 ``` -### Option 3: Using conda +### Option 3: Using conda(centos7.9) + +1.安装python3.12 +# 下载最新版 Miniconda(Linux 示例) +wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O Miniconda3.sh + +# 运行安装脚本 +bash Miniconda3.sh -b -p $HOME/miniconda3 + +# 初始化 Conda +~/miniconda3/bin/conda init + +# 激活环境(重新打开终端或运行) +source ~/.bashrc + + +安装python3.12 + +# 创建新环境(命名为 py312) +conda create -n py312 python=3.12 -y + +# 激活环境 +conda activate py312 + +# 验证 Python 版本 +python --version +# 应输出:Python 3.12.x + +安装owl -```bash # Clone github repo git clone https://github.com/camel-ai/owl.git @@ -226,17 +253,25 @@ git clone https://github.com/camel-ai/owl.git cd owl # Create a conda environment -conda create -n owl python=3.10 +conda create -n owl python=3.12 # Activate the conda environment conda activate owl +export CFLAGS="-std=c99" +yum install gcc-c++ +conda install -c conda-forge gcc_linux-64 gxx_linux-64 +export CC=/root/miniconda3/envs/owl/bin/x86_64-conda-linux-gnu-gcc +export CXX=/root/miniconda3/envs/owl/bin/x86_64-conda-linux-gnu-g++ +yum install libsndfile # Option 1: Install as a package (recommended) pip install -e . +# 设置环境变量后重试 + + # Option 2: Install from requirements.txt pip install -r requirements.txt --use-pep517 -``` ### Option 4: Using Docker From e41800f0e0573fc0ad59f61d6067498f9a812683 Mon Sep 17 00:00:00 2001 From: yiminghub2024 <482890@qq.com> Date: Sun, 27 Apr 2025 21:14:57 +0800 Subject: [PATCH 2/4] Update README.md conda can not install success in centos7.9 need fix --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 6be26d9ec..f9091aadd 100644 --- a/README.md +++ b/README.md @@ -266,10 +266,6 @@ export CXX=/root/miniconda3/envs/owl/bin/x86_64-conda-linux-gnu-g++ yum install libsndfile # Option 1: Install as a package (recommended) pip install -e . -# 设置环境变量后重试 - - - # Option 2: Install from requirements.txt pip install -r requirements.txt --use-pep517 From b3373b3e162a448ca86c23d66dcd4c29c797ef73 Mon Sep 17 00:00:00 2001 From: yiminghub2024 <482890@qq.com> Date: Sun, 27 Apr 2025 21:36:44 +0800 Subject: [PATCH 3/4] Update README.md web service 0.0.0.0 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f9091aadd..3353d75de 100644 --- a/README.md +++ b/README.md @@ -576,6 +576,7 @@ Selecting only necessary toolkits optimizes performance and reduces resource usa ```bash # Start the Chinese version python owl/webapp_zh.py +app.launch(share=False)--->app.launch(share=False, server_name="0.0.0.0") for service at internet # Start the English version python owl/webapp.py From 19f2ef1cece1aa34d305a6c0e3ca0d109b148cb4 Mon Sep 17 00:00:00 2001 From: yiminghub2024 <482890@qq.com> Date: Sun, 27 Apr 2025 21:37:57 +0800 Subject: [PATCH 4/4] Update webapp_zh.py web service at internet --- owl/webapp_zh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owl/webapp_zh.py b/owl/webapp_zh.py index 966af016e..d2e5fc266 100644 --- a/owl/webapp_zh.py +++ b/owl/webapp_zh.py @@ -1269,7 +1269,7 @@ def main(): app = create_ui() app.queue() - app.launch(share=False) + app.launch(share=False, server_name="0.0.0.0") except Exception as e: logging.error(f"启动应用程序时发生错误: {str(e)}") print(f"启动应用程序时发生错误: {str(e)}")