Activating the Virtual Environment

To ensure that all dependencies are managed properly, I created and activated a virtual environment using the following commands:

python3 -m venv venv
source venv/bin/activate

Setting Up Ruby and Installing Gems

For the project, I needed Ruby and several gems. I installed Ruby using a version manager and then installed the required gems:

Install Ruby using a version manager like rbenv or rvm

rbenv install 2.7.2
rbenv global 2.7.2

Install bundler and other necessary gems

gem install bundler
bundle install

By setting up the virtual environment and Ruby, I ensured that my development environment was isolated and had all the necessary dependencies. This setup allowed me to focus on coding without worrying about compatibility issues.