在 Mac 上安裝 pipenv(套件管理工具)

安裝教學

確認 pip 已安裝:

  • pip --version
    結果:pip 21.1.3 from /.../.pyenv/versions/3.9.6/...

  • pip3 --version
    結果:pip 21.1.3 from /.../.pyenv/versions/3.9.6/...

安裝 pipenv:pip install --user pipenv

安裝後的訊息:

WARNING: The script virtualenv-clone is installed in '/Users/flora/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script virtualenv is installed in '/Users/flora/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts pipenv and pipenv-resolver are installed in '/Users/flora/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed backports.entry-points-selectable-1.1.0 certifi-2021.5.30 distlib-0.3.2 filelock-3.0.12 pipenv-2021.5.29 platformdirs-2.2.0 six-1.16.0 virtualenv-20.7.0 virtualenv-clone-0.5.6
WARNING: You are using pip version 21.1.3; however, version 21.2.2 is available.
You should consider upgrading via the '/Users/flora/.pyenv/versions/3.9.6/bin/python3.9 -m pip install --upgrade pip' command.

用 nano 編輯 ~/.bashrc 檔:

  • sudo nano ~/.bashrc

  • 在檔案中加入
    export PATH="$PATH:/Users/flora/.local/bin"

  • 把指令貼上去,編輯完後,control + X 離開,Y 確定變更,再按 Enter。

相關資料

Comments

Popular posts from this blog

資料關聯

程式設計相關社群、活動

TCP/ IP 通訊協定