Ubuntu Bash in Windows 10의 Bash를 Pycharm에서 Terminal로 쓰기

 간단한 컴파일은 Ubuntu Bash in Windows 10로 하는데 Pycharm에서의 Terminal을 Bash.exe로 그냥 잡아버리면 다음에러가 나올수 있다.

"java.io.IOEXception:couldn't create PTY"

이럴땐 우선
 C:\Windows\System32에 있는 C:\Windows\System32\bash.exe 를 C:\에 복사한다.
그런다음  Pycharm의 File > Setting >Tools >Terminal 에 shellpath를  C:\bash.exe로 잡아주고 위의 Start directory를 C:\에서부터 클릭하며 설정해준다.
 그리고 Pycharm을 재시작하면 된다.










Comments

Popular Posts