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

14 visualizaciones (últimos 30 días)
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by