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