anarchy-ai / LLM-VM

irresponsible innovation. Try now at https://chat.dev/
https://anarchy.ai/
MIT License
465 stars 150 forks source link

setup on windows using bat #348

Closed yuqianlucy closed 8 months ago

yuqianlucy commented 8 months ago

Hello,

I am also trying to install Anarchy on Windows and find out its setup. I tried to do research online and discovered that the appropriate file for Windows is using bat. is it alright for me to change it to bat? Thank you!

yuqianlucy commented 8 months ago

try to translate using bat, not very sure whether is correct `@echo off

rem This script sets up your local development environment. rem Currently, the script only supports Windows. rem Something not working? Submit a PR! rem Order of operations matters

rem Fail on errors or unassigned variables. @echo off

rem Add equivalent functions for the 'echo_step' and 'echo_warn' functions. rem Note that colors in Windows batch scripts are usually handled differently.

rem Add equivalent functions for the 'add_to_shell_profile' function. rem Windows doesn't use shell profiles in the same way as Unix-like systems.

rem Define the logic for checking the OS, setting up Homebrew, Python, direnv, and other dependencies.

rem Use 'call' to execute functions in the script. call :check_os call :set_homebrew call :setup_pyenv call :setup_python call :setup_direnv call :setup_pip call :install_deps

rem Add an equivalent function for 'reload_shell'.

echo "Congratulations - your local setup is complete!" echo "Please reload your shell..." rem call :reload_shell

exit /b

:check_os echo "Checking OS..." rem Add the logic for checking the OS. Handle different OS versions accordingly. exit /b

:set_homebrew echo "Setting up Homebrew..." rem Add the logic for setting up Homebrew on Windows. exit /b

:setup_pyenv echo "Setting up Pyenv..." rem Add the logic for setting up Pyenv on Windows. exit /b

:setup_python echo "Setting up Python..." rem Add the logic for setting up Python on Windows. exit /b

:setup_direnv echo "Setting up direnv..." rem Add the logic for setting up direnv on Windows. exit /b

:setup_pip echo "Upgrading pip..." rem Add the logic for upgrading pip on Windows. exit /b

:install_deps echo "Installing dependencies..." rem Add the logic for installing dependencies on Windows. exit /b `

mr-shitij commented 8 months ago

Homebrew is not directly support on windows it requires Linux subsystem; so need to setup that as well

yuqianlucy commented 8 months ago

Thank you for your suggestions! I will give a try

Abdevna commented 8 months ago

I think we can use Scoop which is agnostic to Homebrew @yuqianlucy

VictorOdede commented 8 months ago

This is addressed by #323

yuqianlucy commented 8 months ago

Dear Vik: Thank you! Yuqian Wang(lucy) 10/31/2023

On Tue, Oct 31, 2023 at 10:34 AM Vik @.***> wrote:

Closed #348 https://github.com/anarchy-ai/LLM-VM/issues/348 as completed.

— Reply to this email directly, view it on GitHub https://github.com/anarchy-ai/LLM-VM/issues/348#event-10821781720, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJIZ3IIALAYJDR6EEWHWKDYCED6BAVCNFSM6AAAAAA6JVIXG2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQHAZDCNZYGE3TEMA . You are receiving this because you were mentioned.Message ID: @.***>