- What IDE do you use? PyCharm
- How do you setup python production environment in Linux?
- List the cli commands if possible.
-
Install pyenv . Linux system comes with python so we can just use pyenv and use this a
$ sudo apt-get update -
Install pyenv via git ( assuming git is available ) $ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
-
Setting up Environment variable and adding the pyenv location in PATH $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc $ eval "$(pyenv init --path)"
-
install python versions $ pyenv install --list $ pyenv install 3.9.16
-
Set up pyenv global /local for projects $ pyenv global 3.9.16
-
Verify set up $ pyenv versions
-
install virtual env in the local project folder and use that
-
- List the cli commands if possible.
- crontab
- ssh
- nfs
- nginx I am familiar using ubuntu ,cent os ,crontab ,ssh and nginx .