我的系統安裝了 Python 2.7 和 3.7。我嘗試安裝連接到 Python 3 的 EB CLI,但 CLI 工具似乎只能連接到 2.7 安裝。嘗試 1當我運行時,$ brew install awsebcli我得到一個似乎與 2.7 相關聯的 EB 版本,這是不正確的:$ eb --version EB CLI 3.14.4 (Python 2.7.1)嘗試 2當我嘗試使用 pip 安裝 EB CLI 時,安裝看起來很好,但我無法訪問 EB。$eb --version-bash: eb: command not found文檔表明這可能與我設置的 .bash_profile 中沒有路徑有關,但是我已將以下內容添加到我的 .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