Installation#

last update 2025/11/10

environment#

environment#

OS

python

sphinx

AlmaLinux 9

3.11.2

6.1.3


pyenv installation#

  • download

git clone https://github.com/yyuu/pyenv.git /etc/pyenv
  • 環境変数の設定

echo 'export PYENV_ROOT="/etc/pyenv"' >> /etc/bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> /etc/bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
exec $SHELL
  • python install (example of installing 3.11.2)

pyenv install 3.11.2
cd /var/www/tech
pyenv local 3.11.2

Installation of sphinx#

  • CRB リポジトリの有効化

dnf config-manager --set-enabled crb
  • sphinx install

dnf -y install python-setuptools python-devel zlib-devel libjpeg-turbo-devel freetype-devel graphviz* python-sphinx
pip install --upgrade pip
pip install pillow sphinx