「インストール - Python」の版間の差分

ナビゲーションに移動 検索に移動
20行目: 20行目:
<br>
<br>
# ダウンロードしたファイルを解凍するため、以下のコマンドを実行する。<br><code>tar xvf Python-3.8.4.tar.xz</code>
# ダウンロードしたファイルを解凍するため、以下のコマンドを実行する。<br><code>tar xvf Python-3.8.4.tar.xz</code>
# 次に、解凍したディレクトリに移動して、Makeファイルを作成する。<br><code>./configure --enable-optimizations --prefix=/home/ユーザ名/InstallSoftware/Python/Python-3.8.4</code>
# 次に、解凍したディレクトリに移動して、Makeファイルを作成する。<br><code>./configure --enable-optimizations --prefix=/home/ユーザ名/InstallSoftware/Python/Python-3_8_4</code>
# Pythonのソースコードのコンパイルを行う。(-j5はジョブ数を増加させて高速処理を行っている)<br><code>make -j 8</code>
# Pythonのソースコードのコンパイルを行う。(-j5はジョブ数を増加させて高速処理を行っている)<br><code>make -j 8</code>
# コンパイル完了後、インストールを行う。<br><code>make altinstall</code>
# コンパイル完了後、インストールを行う。<br><code>make altinstall</code>
# 以下のディレクトリにシンボリックリンクを作成する。<br><code>ln -s ~/InstallSoftware/Python/Python-3.8.4/lib64/python3.8/lib-dynload/ ~/InstallSoftware/Python/Python-3.8.4/lib/python3.8/</code>
# 以下のディレクトリにシンボリックリンクを作成する。<br><code>ln -s ~/InstallSoftware/Python/Python-3_8_4/lib64/python3.8/lib-dynload/ ~/InstallSoftware/Python/Python-3.8.4/lib/python3.8/</code>
# .profileファイルまたは.bashrcファイルに、以下のように環境パスを追記する。<br><code>export PATH="$HOME/InstallSoftware/Python/Python-3.8.4/bin:$PATH"</code>
# .profileファイルまたは.bashrcファイルに、以下のように環境パスを追記する。<br><code>export PATH="$HOME/InstallSoftware/Python/Python-3.8.4/bin:$PATH"</code>
<br><br>
<br><br>

案内メニュー