Open ethanjli opened 3 years ago
https://github.com/pyenv/pyenv/blob/master/README.md describes the instructions we should follow:
Put these lines into ~/.profile
before the part that sources ~/.bashrc
:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
And put this line at the bottom of ~/.profile
:
eval "$(pyenv init --path)"
Alternatively, for an automated installation, you can run the following:
echo -e 'if shopt -q login_shell; then' \
'\n export PYENV_ROOT="$HOME/.pyenv"' \
'\n export PATH="$PYENV_ROOT/bin:$PATH"' \
'\n eval "$(pyenv init --path)"' \
'\nfi' >> ~/.bashrc
echo -e 'if [ -z "$BASH_VERSION" ]; then'\
'\n export PYENV_ROOT="$HOME/.pyenv"'\
'\n export PATH="$PYENV_ROOT/bin:$PATH"'\
'\n eval "$(pyenv init --path)"'\
'\nfi' >>~/.profile
After running
deploy/install.sh
on 2021-06-14 and restarting the RPi when prompted, I opened the terminal and then saw the following message:This refers to https://github.com/pez-globo/pufferfish-software/blob/006b6af617f2ab5abf5e7d503eaef43be5e22e0f/deploy/configs/pyenv_config.txt#L3 .
When I run
pyenv init
, I get the following output:(After running
deploy/install.sh
, our~/.profile
does seem to source~/.bashrc
, and that we don't have a~/.bash_profile
).Despite this issue, I am able to run the backend afterwards with
poetry run python3 -m ventserver.simulator
; however, thepyenv
configuration may be broken in other ways that don't prevent that command from running.