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

Respuestas (1)

As you noticed, this is a python error. Try first using python directly to read, without using matlab.

3 comentarios

fid = py.open([ddir,fnames{iFile}],'rb');
greedy{iFile} = py.pickle.load(fid);
hello, I used the code to read my pckl data ,however, it error in the secode code.
Python error ModuleNotFoundError: No module named 'numpy'
and python can work normally in first code.
have you some ideas? thanks
@Yun Guan: Follow this answer to set the env var to point to your numpy installation folder
Thank you so much!! I got it!

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 13 de Ag. de 2021

Comentada:

el 10 de Nov. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by