5

I am new to coding and trying to do something with an API and i keep seeing a dollar sign in front of code without specifying where it is being written.

Here is an example:

Image

I know this dollar sign appears in git bash, however when I run the code it doesn't work. Is it the terminal for macOS or Linux (I am currently on Windows)? I know this is a simple question but I just can't seem to find a solid answer anywhere.

Mofi
  • 46,139
  • 17
  • 80
  • 143
aihustle
  • 63
  • 1
  • 1
  • 5

1 Answers1

6

As you mentioned, the dollar sign appears in git bash, right before where any shell commands you type appear. All the dollar sign is signifying is that what comes after is meant to be run on the command line (it is not actually a part of the command). So instead of entering and executing

$ pip install [package]

As your command, simply execute:

pip install [package]
TheDarkHoarse
  • 416
  • 4
  • 9