Skip to content

Clarify virtual environment setup instructions (Points 7 & 8)#513

Open
VanshikaSabharwal wants to merge 3 commits intooppia:developfrom
VanshikaSabharwal:improveDoc
Open

Clarify virtual environment setup instructions (Points 7 & 8)#513
VanshikaSabharwal wants to merge 3 commits intooppia:developfrom
VanshikaSabharwal:improveDoc

Conversation

@VanshikaSabharwal
Copy link

PR Description

Background:
In the Oppia installation docs, the instructions for setting up the virtual environment (points 7 and 8) caused some confusion for beginners:

Point 7: Mentioned adding the .direnvrc file to the “home directory,” but did not explain how users could verify they were in the correct directory.

Point 8: The wording around creating a virtual environment was a bit technical and could be simplified.

Changes Made:

Point 7:

Clarified that the .direnvrc file should be added to the user’s home directory (e.g., /home/your-username/).

Introduced the commonly used tilde (~) shorthand to refer to the home directory.

Added a suggestion to run pwd to verify the current directory before creating the file.

Point 8:

Reworded instructions to be more beginner-friendly, explaining in simpler language how to create the .envrc file in the root folder of the cloned Oppia repository.

Example of updated text:

“Add a new file called .direnvrc into your user’s home (~) directory (e.g., /home/your-username/). You can run pwd to verify that you are in the correct directory. Then add the following content …”

“Create a virtual environment for Oppia by adding a file named .envrc into the root folder containing the Oppia repository with this content: use python 3.10.16. Then run direnv allow. Now whenever you are within the oppia folder, the virtual environment will be active.”

Impact:
These changes improve clarity and reduce confusion for first-time users setting up Oppia on their local machine.

Related Issue: #465

@VanshikaSabharwal
Copy link
Author

VanshikaSabharwal commented Feb 24, 2026

@Helper2020 @HardikGoyal2003 PTAL

@HardikGoyal2003
Copy link
Member

@jayam04 PTAL, thanks!

Copy link
Member

@jayam04 jayam04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VanshikaSabharwal Left a review.


8. Create a virtual environment for oppia by adding file named `.envrc` into the parent folder of the oppia repository
with this content:
8. Create a virtual environment for oppia by adding file named `.envrc` into the root folder containing the oppia repository with this content:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this oppiaroot folder.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we can

Copy link
Member

@jayam04 jayam04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VanshikaSabharwal Thanks for updating the doc. I left a review

> Be careful with using graphical editors like Notepad in Windows. These can add carriage returns (`\r`) that confuse our Linux-based development tools. Instead, we recommend using editors designed for programming or command-line text editors.

8. Create a virtual environment for oppia by adding file named `.envrc` into the parent folder of the oppia repository
with this content:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also specific path ../ or something similar.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is no as such path for this. Can you please specify a path if you have in mind?

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

Successfully merging this pull request may close these issues.

3 participants