Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

To run Pyenv in-shell subcommands from a script, install pyenv as a shell function inside the script first:

#!/bin/bash

eval "$(pyenv init - bash)"
# now we can use Pyenv in-shell subcommands
pyenv virtualenv test
pyenv activate test
pip install numpy

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by native-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants