pip freeze
results in
grep==0.3.2
appears.However,
python-mpip freeze | grep package name
If you actually try to use it like this,
'grep' is an internal or external command.
Not recognized as an operational program or batch file.
It is said thatAlso, use the list
list pip list | grep package name
However, I was told that I can't use it as above.
Are there any settings that I have to do?
Thank you for your cooperation.
python pip grep
It confuses grep
as a module in Python
with grep
as a command in Windows
.
grep
when python-mpip freeze|grep package name
must have grep.exe
or grep.bat
somewhere in the current folder or in the folder specified in PATH
.
In this case, instead of grep
, the simple thing is to use find
and enclose the package name
with "
.
If you are not particular about grep
specifications or fine-tuned options, you will get comparable results.
It looks like this.
python-mpip freeze | find "package name"
pip list|find "package name"
The show
command would be a good idea to find out if a particular module/package has been installed/number of editions.If installed, dependencies and more information will be available.
pipe show package name
The error message suggests that it is being used on Windows, but grep
is primarily used on Linux and is not available on Windows.
If you would like to search for packages on pip, try pip search
.
$pip search KEYWORD
© 2024 OneMinuteCode. All rights reserved.