리그캣의 개발놀이터

딥러닝 - 이슈 Running setup.py install for pyyaml ... error 본문

개발 공부/딥러닝

딥러닝 - 이슈 Running setup.py install for pyyaml ... error

리그캣 2018. 4. 7. 17:06

Exception:

Traceback (most recent call last):

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str

    return s.decode(sys.__stdout__.encoding)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 72: invalid continuation byte


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\basecommand.py", line 215, in main

    status = self.run(options, args)

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\commands\install.py", line 342, in run

    prefix=options.prefix_path,

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\req\req_set.py", line 784, in install

    **kwargs

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\req\req_install.py", line 878, in install

    spinner=spinner,

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess

    line = console_to_str(proc.stdout.readline())

  File "C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str

    return s.decode('utf_8')

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 72: invalid continuation byte


같은 에러가 떳을때.


C:\Users\user\Anaconda3\envs\tutorial\lib\site-packages\pip\compat\__init__.py


열어 return s.decode('utf_8')를 

return s.decode('cp936') 으로 변경하였더니 설치가 잘된다.


Comments