❓ Information
- Powershell Conda 인식 오류
❗ Relevant data
📦 Information Resources
🔰 Content ->
문제 상황
PowerShell에서 conda 명령이 실행되지 않음
원인 파악
conda가 어떤 경로에서 실행되고 있는지 확인함
Get-Command conda
결과는
CommandType Name Version Source
----------- ---- ------- ------
Alias conda -> Invoke-Conda 0.0 Conda
Get-Command conda결과를 보면conda가 Alias로Invoke-Conda에 연결되어 있다. 즉,conda명령어 자체가 PowerShell 함수 또는 커맨드렛 형태로 재정의되어 있다는 뜻alias(
Invoke-Conda)를 제거하고 기본conda명령어를 사용하는 게 가능하고, 심지어 권장되는 방법 이라고함?
문제 해결
conda 에서 Invoke-Conda alias를 제거함
Remove-Item Alias:conda
Get-Command conda
결과는
CommandType Name Version Source
----------- ---- ------- ------
Application conda.exe 0.0.0.0 C:\ProgramData\Anaconda3\...
그리고 conda 명령이 잘 동작 한다.