Skip to content

Commit

Permalink
Troubleshooting pyenv not found
Browse files Browse the repository at this point in the history
Added this troubleshooting step, because during the setup it regularly occurs that pyenv is not found.
Often this can be resolved by manually sourcing `.zprofile`.
Reason is that some time ago pyenv was moved from `.zshrc` to `.zprofile`.
`.zprofile` only gets loaded at startup, while `.zshrc` is loaded in any new terminal window, or after `exec zsh`.

Alternative would be a full restart of the computer.
  • Loading branch information
julesvanrie committed May 18, 2024
1 parent 8f9e270 commit 8789a50
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
22 changes: 21 additions & 1 deletion _partials/osx_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,27 @@ pyenv install <PYTHON_VERSION>
This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you!

<details>
<summary>🛠 Troubleshooting</summary>
<summary>🛠 Troubleshooting `pyenv` not found</summary>

If you encounter an error `Command 'pyenv' not found`: execute the following line:

```bash
source ~/.zprofile
```

Then try to install Python again:

```bash
pyenv install <PYTHON_VERSION>
```

If `pyenv` is still not found, contact a teacher.

</details>


<details>
<summary>🛠 Troubleshooting `zlib`</summary>

If you encounter an error installing Python with `pyenv` about `zlib`:

Expand Down
21 changes: 21 additions & 0 deletions _partials/ubuntu_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,27 @@ pyenv install <PYTHON_VERSION>

This command might take a while, this is perfectly normal. Don't hesitate to help other students seated next to you!

<details>
<summary>🛠 Troubleshooting `pyenv` not found</summary>

If you encounter an error `Command 'pyenv' not found`: execute the following line:

```bash
source ~/.zprofile
```

Then try to install Python again:

```bash
pyenv install <PYTHON_VERSION>
```

If `pyenv` is still not found, contact a teacher.

</details>
<br>


OK once this command is complete, we are going to tell the system to use this version of Python **by default**. This is done with:

```bash
Expand Down

0 comments on commit 8789a50

Please sign in to comment.