Hey. I am trying to write the simplest bash script for my application so that all dependencies are installed in one command. But nothing happens, errors occur:

] is not understood in combination with the other options. 

and

 Collecting pip3 Could not find a version that satisfies the requirement pip3 (from versions: ) No matching distribution found for pip3 

The bash script code itself:

 apt install python3 -y apt install python3-pip -y apt install git -y pip3 install --upgrade pip3 pip3 install requests netaddr pip3 install --upgrade requests 

Why do these errors occur and what are they connected with?

  • #!/bin/sh , but exactly apt , not apt-get ? - 0andriy
  • Exactly apt - JamesJGoodwin
  • the label is absolutely not “in the subject”: the bash program doesn’t refer any more to the message than, for example, to the keyboard with which these commands were written. enter them separately and see which caused the message data. - aleksandr barakin
  • Because pip3 install --upgrade pip - andreymal
  • one
    In the fact that there is no pip3 package, there is only pip - andreymal

0