Preparation for Development Environment of WEKO3 - RCOSDP/weko GitHub Wiki

Installation of pyenv

check out “pyenv” to your HOME directory.

git clone https://github.com/pyenv/pyenv.git ~/.pyenv

define environmental variables for pyenv into your profile.

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bash_profile

enable environmental variables in your current console.

source ~/.bash_profile

check the installed version of pyenv.

pyenv --version

install specific version of Python using pyenv.

pyenv install 3.6.4

enable specific version of Python in Local setting.

pyenv local 3.6.4

if you want to apply for Global setting, pyenv global 3.6.4 .

check the enabled version of Python.


pyenv version

installation of pyenv-virtualenv

check out “pyenv-virtualenv” into the plugins directory of installed pyenv.

git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv

define environmental variable for pyenv-virtualenv into your profile.

echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile

enable environmental variables in your current console.

source ~/.bash_profile

check the installed version of pyenv-virtualenv.

pyenv virtualenv --version

installation of nvm

run installation script.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

define environmental variables for nvm into your profile.

cat << EOS >> ~/.bash_profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
EOS

enable environmental variables in your current console.

source ~/.bash_profile

check the installed version of nvm.

nvm --version

list available node version list (in following command, list latest LTS version of node).

nvm ls-remote | grep "Latest LTS"

install specific version of node.

nvm install v8.11.3

check the installed version of node.

nvm version
⚠️ **GitHub.com Fallback** ⚠️