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
Yun Guan
Yun Guan 2021 年 11 月 10 日
Thank you so much!! I got it!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCall MATLAB from Python についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by