Python 3.5.1 Failed to import numpy after upgrade

I am running Python 3.5.1 on a computer running Windows 7. I have been using Anaconda without a problem for several months now. This morning I updated my packages (conda update - all), and now I can not import numpy (version 1.11.0) or pandas (version 0.18.1).

The error I get from Python: Syntax error: (error in unicode). Unicodeescape codec cannot decode bytes at position 2-3: truncated \ UXXXXXXXX escape. This error occurs when the import statement is executed.

I can import other packages, some from anaconda packages and some from other sources without problems.

Any thoughts on how to resolve this?

+2
source share
2 answers

This is a problem with prefix replacement and backslash, which is not performed properly. More details:

fooobar.com/questions/1007323 / ...

+2
source

I was able to solve this problem using conda to uninstall and reinstall packages that failed to import. I will leave the question unanswered to find out if anyone has a better solution, or recommendations on how to prevent this in the future.

0
source

All Articles