Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Option 1: Use pip to install Python packages from the Python Package Index (PyPI)

    • This may be suitable for users who are starting to use Python and/or planning to use Python very little.

    • For details, please see the below sections in this article.

  • Option 2: Use pip and venv to create a virtual environment and install packages in that virtual environment (recommended)

    • This is a recommended option for users who plan to use Python extensively or have multiple projects using Python.

    • For details on how to use venv in IDAS, please see Python Virtual Environments.

  • Option 3: Use conda to create a conda virtual environment and install packages in that conda virtual environment (recommended)

    • This is a recommended option for users who plan to use Python extensively or have multiple projects using Python.

    • For details on how to use conda in IDAS, please see Conda.

...

This article outlines the steps to install Python packages using pip (Option 1 above). We also recommend using tools like Conda and Python Virtual Environments and Conda in IDAS to manage your projects.

...

Code Block
touch ~/.bashrc

Add your user library to PATH:

Code Block
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc

And then run the following in Terminal. Note that .bashrc needs to be sourced every time you start a new Terminal session.

...