[Python] 폴더 내 whl 파일 전체 설치

이재복·2024년 3월 11일

whl 파일들이 들어있는 폴더로 경로로 이동합니다

cd 폴더경로

이동 후 아래 명령어를 입력하면, 폴더 내에 whl 파일들을 전체 설치합니다.

Get-ChildItem -Filter *.whl | ForEach-Object { pip install $_.FullName }


+에러가 났던 코드들

> pip install dir *.whl

WARNING: Requirement '*.whl' looks like a filename, but the file does not exist
ERROR: *.whl is not a valid wheel filename.
> for %x in (dir *.whl) do python -m pip install %x

위치 줄:1 문자:4
+ for %x in (dir *.whl) do python -m pip install %x
+    ~
'for' 키워드 뒤에 여는 '('가 없습니다.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword
profile
목표는 데이터사이언티스트

0개의 댓글