Import numpy throws error: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX escape

前端 未结 3 1903
难免孤独
难免孤独 2020-12-16 23:42

I have installed pyzo and miniconda under Windows 10 and installed numpy and matplotlib using conda install.

3条回答
  •  情歌与酒
    2020-12-17 00:08

    So, for people having trouble in

    import numpy
    

    using Windows 10 + Anaconda:

    I replaced all single '\' to double '\\' in

    \Lib\site-packages\numpy\__config__.py
    

    I could import numpy after that.

提交回复
热议问题