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

14 Ansichten (letzte 30 Tage)
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)

Antworten (1)

Yongjian Feng
Yongjian Feng am 17 Aug. 2021
As you noticed, this is a python error. Try first using python directly to read, without using matlab.
  3 Kommentare
Yongjian Feng
Yongjian Feng am 9 Nov. 2021
Bearbeitet: Yongjian Feng am 9 Nov. 2021
@Yun Guan: Follow this answer to set the env var to point to your numpy installation folder

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by