Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows通过WSL配置auto-coder #15

Open
xuzhougeng opened this issue Jun 4, 2024 · 0 comments
Open

Windows通过WSL配置auto-coder #15

xuzhougeng opened this issue Jun 4, 2024 · 0 comments

Comments

@xuzhougeng
Copy link

第一步,配置一个wsl,详细版本见http://xuzhougeng.com/archives/building-a-wsl-based-python-data-science-environment,如下是简明版

首先,得确保自己的操作系统符合要求,对于windows11直接就可以了,对于Windows 10 ,要求高于version 2004 或高于Build 19041,可以通过打开powershell运行如下命令确认。

Get-ComputerInfo -Property "OsName", "OsVersion", "WindowsProductName", "WindowsEditionId", "OsHardwareAbstractionLayer"

image

接着,在powershell中运行如下wsl --install, 跟着提示操作就可以,中间可能需要重启一下电脑。

默认情况下,WSL使用宿主机的一般内存,例如你的电脑配置是16G内存,那么WSL最多就用8G。如何修改见详细版。

第二步,在WSL中安装conda, 我用的是清华镜像提供的Miniconda

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh
bash Miniconda3-py38_4.12.0-Linux-x86_64.sh

根据提示安装结束后,重新打开wsl,就可以进行下一步。

第三步,安装auto-coder。

conda create --name auto-coder python=3.10
conda activate auto-coder
pip install -U auto-coder
ray start --head  --port 6380

需要注意的是,假设你运行ray start的事后,遇到了如下报错,就说明你的默认6379端口被占用了,比如说我就是,所以我换成了6380

RuntimeError: Failed to start GCS.  Last 1 lines of error files:
[2024-06-04 10:09:50,260 C 15013 15013] (gcs_server) grpc_server.cc:124:  Check failed: server_ Failed to start the grpc server. 
The specified port is 6379. This means that Ray's core components will not be able to function correctly. 
If the server startup error message is `Address already in use`, 
it indicates the server fails to start because the port is already used by other processes (such as --node-manager-port, --object-manager-port, --gcs-server-port, and ports between --min-worker-port, --max-worker-port).
Try running sudo lsof -i :6379 to check if there are other processes listening to the port.

后续参考 000-AutoCoder_准备旅程.md 即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant