Skip to content

Commit

Permalink
Merge pull request #1808 from thibaudcolas/simplify-venv-runcode
Browse files Browse the repository at this point in the history
Simplify RunCode virtual environment installation and usage instructions
  • Loading branch information
das-g authored Oct 8, 2023
2 parents c3588ff + 70960bd commit 0a0e7a5
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions en/cloud_development_setup/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,24 @@ $ mkdir djangogirls
$ cd djangogirls
```

We will make a virtualenv called `myvenv`.
We will make a virtualenv called `myvenv` by running `python3 -m venv myvenv`.
It will look like this:

To create a new `virtualenv` on RunCode, you first need to install the `virtualenv` module. To do so, first you need to update
the packages in your environment
>```
>$ sudo apt-get update -y
>```
> then install `virtualenv` by running the command:
>```
>$ sudo apt-get install -y virtualenv
>```
{% filename %}command-line{% endfilename %}
```
$ python3 -m venv myvenv
```

> After this you can create the `virtualenv` run the command:
>```
>$ virtualenv -p python myvenv
>```
> and a new `virtualenv` with the name `myvenv` or whatever name you chose should be created in your `djangogirls` folder.
`myvenv` is the name of your `virtualenv`. You can use any other name, but stick to lowercase and use no spaces. It is also a good idea to keep the name short as you'll be referencing it a lot!

## Working with a Virtual Environment
>Start your virtual environment by running:
>```
>$ . myvenv/bin/activate
>$ source myvenv/bin/activate
>```
Remember to replace `myvenv` with your chosen `virtualenv` name!

### Installing packages with requirements

A requirements file keeps a list of dependencies to be installed using
Expand Down

0 comments on commit 0a0e7a5

Please sign in to comment.