-3

I want to install something in a folder called "requirements.txt". The README says that pip3 install -r requirements.txt is required.

When I run pip3 install -r requirements.txt in python 3.10 it gives me a syntax error.

Readme

Command I entered

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
  • 2
    Meanwhile, the short uninformative answer is: you are typing the command at the Python prompt: it should be typed at the shell prompt (CMD on windows). – jsbueno Jul 09 '22 at 11:54
  • it says that pip3 is not an operable internal or external command or batch file – adrian h Jul 09 '22 at 11:59
  • 1
    As for your new error: ['pip' is not recognized as an internal or external command](https://stackoverflow.com/q/23708898/2745495) – Gino Mempin Jul 09 '22 at 12:04

2 Answers2

1

To use pip like this you should use it from command promt. Have a look at this link

eightlay
  • 423
  • 2
  • 9
1
  1. The command should be run from the shell, not from within the Python interpreter.

  2. Run it without the back ticks (` ). The README is in a Markdown format (".md"), and the ticks are used for formatting. Use an editor which can interpret Markdown files.

navneethc
  • 1,234
  • 8
  • 17