<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## Mac 升級Python 2.7 到 Python 3.X MAC上默認內置安裝了Python 2.7,但是Python 2.7到2020年就會停止維護了,并且有時候會出現依賴庫的不兼容問題,Odoo最新版本默認采用的是Python 3.X。那么怎么安裝Python 3.X,并且將Python 3.X的版本設置為默認版本呢? #### 安裝Python 3.X 1、下載地址如下:https://www.python.org/downloads/ 2、點擊下載好的pkg文件進行安裝 3、安裝完成之后,python 3.70的默認安裝路徑如下: ```shell /Library/Frameworks/Python.framework/Versions/3.7 ``` #### 修改profile文件 直接在.profile加一個alias就可以了。如果你的Terminal運行的shell是bash(默認),在terminal里運行open ~/.bash_profile,打開~/.bash_profile,直接修改文件即可~/.bash_profile,添加: ```shell alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7" ``` 然后重啟一下Terminal或者直接 ```shell source ~/.bash_profile ``` ```shell # Setting PATH for Python 3.7 # The original version is saved in .bash_profile.pysave export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.7/bin: alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7" ``` 重啟一下Terminal,使修改后的文件生效。 #### Python 2.7與Python 3.X版本的切換 使用Python 2.7時,直接將~/.bash_profile文件中3.7的版本注釋掉,即 ```shell # aliaspython="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7" ``` 使用Python 3.7時,直接將~/.bash_profile文件中3.7的版本打開,即 ```shell aliaspython="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7" ``` #### 驗證 在終端中直接 輸入 python -v,顯示版本號為3.7 ## 在Mac上安裝PostgreSQL #### 準備 假設homebrew已經安裝好 沒安裝的需要先安裝,見下面鏈接 http://brew.sh/ #### 安裝PostgreSQL ```shell $ brew tap homebrew/services $ brew install postgresql ``` 查看安裝的版本 ```shell $ pg_ctl -V ``` 做為服務啟動,停止將start改為stop ```shell brew services start postgresql ``` 不做為服務啟動 ```shell pg_ctl -D /usr/local/var/postgres start ``` 我這里選擇安裝為服務 訪問缺省數據庫 ```shell psql postgres ``` 創建新用戶和數據庫 ```shell createuser -P odoodev createdb -Oodoodev -Eutf8 odoo12 ``` 訪問 ```shell psql -Uodoodev odoo12 ``` \q 退出 psql的命令這里不再贅述。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看