• SupportQuestion
  • help with correct terminal command to install Streamlit via pip

I'm trying to install Streamlit per their instruction https://docs.streamlit.io/library/get-started/installation
and have made it to step #3 (pip install streamlit) but it does not work for me.
(I installed 'pip' earlier, per their instructions, I think though the Software Center, can't remember now)

I get this message from the terminal:
bash: /home/(computer name)/.local/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or directory

I also tried these:
sudo eopkg pip install streamlit
sudo eopkg install streamlit
but neither worked.

What command should I be using?
Or is my 'path' the problem?
Thanks,
Mike

I think you need an extension to python to be able to use the pip command. Maybe someone familiar with that can chime in.

    tflovik I just looked and I currently have 233 python related packages installed starting with 'py', 'python' and 'python3'. I guess it's not one of them :-)

    I searched the Software Center for 'pip' and outside of pip (which is installed) was pipx, which sounded like it could help so I installed it, then went to the folder where the .venv was and tried again but no difference, same 'bash' message.

    I think you install pip from python, not from the distros package manager.
    I could be wrong, but i dabbled with python a fey years ago and think i remember that.

      You want the pip3 command. It's a part of the base Python 3 package.

      Try: pip3 install --upgrade pip next pip install streamlit

      tflovik Someone on the Streamlit forum helped out, they said to run this instead:
      python3 -m pip install streamlit
      It worked and now I have Streamlit in my browser!

      I'll add the final changes that worked for me when installing Streamlit on Solus OS (Budgie)
      Two links:

      1. Official Streamlit Installation Guide:
        https://docs.streamlit.io/library/get-started/installation
      2. My questions in their forum is someone wants to read all the details:
        https://discuss.streamlit.io/t/help-with-installation-please/50844/12

      Maybe there are other or better ways, but here is one:

      Changes to Installation Process of Streamlit for Solus OS

      Step 1: Install pip

      I installed from the Solus OS Software Center (search 'pip')

      "Create a new environment with Streamlit"

      1. "Navigate to your project folder"

      I created a folder first (right in the File Explorer, not the terminal), then navigate to it

      1. "Create a new virtual environment in that folder and activate that environment:"

      the recommendation is: python -m venv .venv but for Solus OS you should use:
      python3 -m virtualenv .virtualenv
      or maybe - python3 -m venv .venv but the key part is adding the '3' after 'python'

      1. "Install Streamlit in your environment:"

      the recommendation is: pip install streamlit but for Solus OS you should use:
      python3 -m pip install streamlit