Skip to content

Commit

Permalink
Virtual environments in pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
dpurge committed Dec 15, 2023
1 parent e213d9e commit 0192a5b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion content/docs/devops/macos/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
```sh
brew update
brew install pyenv
brew install pyenv-virtualenv
```

Add to `~/.zshenv`:

```sh
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
```

Check:
Expand All @@ -20,7 +28,13 @@ pyenv global 3.12.0
pyenv version
```

Add to `~/.zshenv`: `eval "$(pyenv init -)"`
Prepare virtual environment for LLM:

```sh
pyenv virtualenv 3.12.0 llm
pyenv global llm
pip install langchain
```

Install packages:

Expand Down

0 comments on commit 0192a5b

Please sign in to comment.