Aman Kabra
Aman Kabra

Reputation: 31

Why is pipreqs throwing the invalid syntax error (python)?

I'm trying to create a requirements.txt file for my python project.

Why is pipreqs throwing the invalid syntax error? I tried modifying the path name multiple ways but am always thrown this error.

import pipreqs

pipreqs C:\\Users\\Aman\\Desktop
  File "<ipython-input-853-717ca401b58e>", line 1
    pipreqs C:\\Users\\Aman\\Desktop
            ^
SyntaxError: invalid syntax

Any help would be greatly appreciated!

Upvotes: 0

Views: 2181

Answers (1)

Nithin K
Nithin K

Reputation: 21

You should be executing this in command prompt. It should look something like so:

pipreqs C:\Users\Aman\Desktop

Upvotes: 1

Related Questions