From 92226afc6f95176749b1334efe91eba0c6d2be81 Mon Sep 17 00:00:00 2001 From: rayenchtioui <113062306+rayenchtioui@users.noreply.github.com> Date: Sat, 19 Oct 2024 00:02:01 +0100 Subject: [PATCH] Update setup_guide.rst While learning Odoo and exploring the documentation, I noticed that users without a Python background might be unfamiliar with the concept of virtual environments. This can lead to confusion and frustration when trying to run the server without properly setting up the environment. I've added a section explaining how to create a virtual environment and install dependencies, which will save time for new users and make the setup process smoother. --- content/developer/tutorials/setup_guide.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/developer/tutorials/setup_guide.rst b/content/developer/tutorials/setup_guide.rst index a1d56720d..bfd1c6a0c 100644 --- a/content/developer/tutorials/setup_guide.rst +++ b/content/developer/tutorials/setup_guide.rst @@ -56,6 +56,17 @@ will be part of the `addons-path` that references all directories containing Odo $ cd /tutorials $ git remote add dev git@github.com:odoo-dev/tutorials.git $ git remote set-url --push origin you_should_not_push_on_this_repository +#. Create a virtual environment: + .. tabs:: + .. tab:: Run the command below to create a virtual python environment. + #. Replace `` in the command below with your desired name for the virtual environment. + .. code-block:: console + + $ python3 -m venv + #. After creating the virtual environment, install the required Python packages by running. + .. code-block:: console + + $ pip install -r requirements.txt That's it! Your environment is now prepared to run Odoo from the sources, and you have successfully created a repository to serve as an addons directory. This will allow you to push your work to GitHub.