grep 사용

Leejaegun·2024년 11월 16일

Python & etc

목록 보기
3/27

pip freeze | grep -v "@" > requirements.txt'
골뱅이 없이 바로 requirements.txt생성함.

간혹 pip list | grep 해서 목록을 봐야하는데 한번에 여러개 보고 싶을 수 있다.
그럴때는 pip list | grep -E "torch|torchvision|torchaudio" 이렇게 적으면 된다.

profile
Lee_AA

0개의 댓글