我的系統(tǒng)安裝了 Python 2.7 和 3.7。我嘗試安裝連接到 Python 3 的 EB CLI,但 CLI 工具似乎只能連接到 2.7 安裝。嘗試 1當(dāng)我運(yùn)行時(shí),$ brew install awsebcli我得到一個(gè)似乎與 2.7 相關(guān)聯(lián)的 EB 版本,這是不正確的:$ eb --version EB CLI 3.14.4 (Python 2.7.1)嘗試 2當(dāng)我嘗試使用 pip 安裝 EB CLI 時(shí),安裝看起來(lái)很好,但我無(wú)法訪問(wèn) EB。$eb --version-bash: eb: command not found文檔表明這可能與我設(shè)置的 .bash_profile 中沒(méi)有路徑有關(guān),但是我已將以下內(nèi)容添加到我的 .bash_profile 并重新加載了 .bash_profile:# Adding path to Elastic Beanstalk CLIexport Path=/Library/Python/3.7/bin:$PATH
使用 Python 2 而不是 Python 3 安裝 EB CLI
慕碼人8056858
2021-06-14 21:14:17