1. 程式人生 > >ubuntu中如何安裝python3.6

ubuntu中如何安裝python3.6

bin www onf 是否 sql then 解決方法 denied config

此處使用命令行方式來安裝Python3.6:

  1. sudo wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
  2. sudo tar xJf Python-3.6.0.tar.xz
  3. sudo cd Python-3.6.0
  4. sudo ./configure
  5. sudo make && make install

檢查是否安裝成功,運行以下命令:

#which python3

輸出:#/usr/local/bin/python3

#python3 -V

輸出:Python 3.6.0

對於permission denied解決方法:

sudo chmod a+x /xxx/xxx

Then try to clean the make and do it again:
sudo make clean

sudo ./configure

sudo make && make install

ubuntu中如何安裝python3.6