In Pycharm where/how do I issue the equivalent of a "pip3 freeze > "requirements.txt""

Background:

PyCharm 2023.1.3 (Professional Edition)
Build #PY-231.9161.41, built on June 20, 2023
Licensed to Peter Stucki Stucki
Subscription is active until November 20, 2023.
Runtime version: 17.0.7+10-b829.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
 

Python 3.11

 

I was asked to issue the command:

pip3 freeze > “requirements.txt”

Since I'm new-ish to Pycharm, I ran it in the Terminal. I got this error. 

ERROR: unknown command "freeze>" - maybe you meant "freeze"
 

How/where in PyCharm do I perform the equivalent operation?

0
1 comment

Hello, 

There is an error in the command according to the error message (missed a space and a hyphen after freeze); the correct command is pip3 freeze -> requirements.txt.

Please try it, and if it still shows an error - take a screenshot and upload it to this thread.

0

Please sign in to leave a comment.