mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-13 14:03:53 -05:00
Updated How to create a virtualenv and activate it immediately in a script (markdown)
@@ -2,7 +2,8 @@
|
|||||||
# PROBLEM
|
# PROBLEM
|
||||||
pyenv virtualenv 3.9.0 foo-3.9.0
|
pyenv virtualenv 3.9.0 foo-3.9.0
|
||||||
poetry install # won't install packages to the new virtualenv!
|
poetry install # won't install packages to the new virtualenv!
|
||||||
|
```
|
||||||
|
```bash
|
||||||
# SOLUTION
|
# SOLUTION
|
||||||
pyenv virtualenv 3.9.0 foo-3.9.0
|
pyenv virtualenv 3.9.0 foo-3.9.0
|
||||||
export VIRTUAL_ENV="$(pyenv virtualenv-prefix)/envs/foo-3.9.0"
|
export VIRTUAL_ENV="$(pyenv virtualenv-prefix)/envs/foo-3.9.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user