1.Python3.6環境部署

標題:Python3.6環境部署文檔

做者:劉耀

內容

  1. Linux部署Python3.6環境
  2. Mac部署Python3.6環境
  3. Window10部署Python3.6環境
  4. Pycharm安裝

1. Linux部署Python3.6環境

  1. 登陸官網找到Python3.6的下載地址python

    [https://www.python.org/downloads/release/python-362/]linux

  2. 右鍵複製下載地址c++

    https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xzgit

  3. 下載及安裝[登陸linux服務器]github

    # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel  [安裝依賴]
    # yum -y install sqlite-devel readline-devel tk-devel gdbm-devel     [安裝依賴]
    # yum -y install db4-devel libpcap-devel xz-devel                    [安裝依賴]
    # yum -y install gcc gcc-c++
    # cd /root/
    # wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz [下載]
    # tar xf Python-3.6.2.tar.xz [解壓]
    # cd Python-3.6.2
    # ./configure --prefix=/usr/local/python3.6
    # make
    # make install
  4. 運行解釋器sql

    # cd /usr/local/python3.6/bin/
    # ./python3.6

    如圖所示
    1505024093157ruby

  5. 使用PIp服務器

    pip至關於Python的模塊管理工具,Python之因此強大緣由之一就是第三方庫的豐富
    # cd /usr/local/python3.6/bin/
    # ./pip3
  6. 配置環境變量curl

    #ln -s /usr/local/python3.6/bin/python3 /usr/bin/python3
    #ln -s /usr/local/python3.6/bin/pip3 /usr/bin/pip3

2. Mac部署Python3.6環境

  1. 使用brew工具管理工具

    brew 又叫Homebrew,是Mac OSX上的軟件包管理工具,能在Mac中方便的安裝軟件或者卸載軟件
    地址https://brew.sh/
  2. 安裝brew

    使用終端工具
    # /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. 使用brew安裝Python3.6

    # 在終端輸入如下命令:
    # brew install python3
    python安裝完成,具體路徑是:/usr/local/Cellar/python3/3.6.2/
  4. 運行解釋器

    # cd /usr/local/Cellar/python3/3.6.2/bin/
    # ./python3

    33D273A0-8D1B-4122-92A5-A3245B168884

3. Window10部署Python3.6環境

  1. 登陸官網找到Python3.6的下載地址

    [https://www.python.org/downloads/release/python-362/]

    22EFE97C-40FC-4468-9233-65C624A7BC7E

  2. 點擊下載

  3. 安裝

    python-window-1

    python-window-2

    python-window-3

  4. 進入解釋器

    python-window-4

4. Pycharm安裝

  1. 下載

    [https://www.jetbrains.com/pycharm/download]

  2. 選擇

    pycharm-dow

  3. 安裝

    過程省略

相關文章
相關標籤/搜索