Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)

조회 수: 52 (최근 30일)
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)
  댓글 수: 1
Yun Guan
Yun Guan 2021년 11월 10일
hello,have you solved the problem. and I had the same problem about the Unicode decode error in matlab. thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 8월 17일
As you noticed, this is a python error. Try first using python directly to read, without using matlab.
  댓글 수: 3
Yongjian Feng
Yongjian Feng 2021년 11월 9일
편집: Yongjian Feng 2021년 11월 9일
@Yun Guan: Follow this answer to set the env var to point to your numpy installation folder

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by