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

52 vues (au cours des 30 derniers jours)
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)
  1 commentaire
Yun Guan
Yun Guan le 10 Nov 2021
hello,have you solved the problem. and I had the same problem about the Unicode decode error in matlab. thanks

Connectez-vous pour commenter.

Réponses (1)

Yongjian Feng
Yongjian Feng le 17 Août 2021
As you noticed, this is a python error. Try first using python directly to read, without using matlab.
  3 commentaires
Yongjian Feng
Yongjian Feng le 9 Nov 2021
Modifié(e) : Yongjian Feng le 9 Nov 2021
@Yun Guan: Follow this answer to set the env var to point to your numpy installation folder

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call MATLAB from Python dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by