Python 3.5.1更新后无法导入numpy [英] Python 3.5.1 Unable to import numpy after update

查看:169
本文介绍了Python 3.5.1更新后无法导入numpy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7计算机上运行Python 3.5.1.我已经使用Anaconda几个月了.今天早上,我更新了软件包(conda update --all),现在无法导入numpy(1.11.0版)或pandas(0.18.1版).

I'm running Python 3.5.1 on a Windows 7 machine. I've been using Anaconda without issue for several months now. This morning, I updated my packages (conda update --all) and now I can't import numpy (version 1.11.0) or pandas(version 0.18.1).

我从Python得到的错误是: 语法错误:(unicode错误)"unicodeescape"编解码器无法解码位置2-3中的字节:截断的\ UXXXXXXXX转义.执行import语句时会发生此错误.

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

我能够导入其他软件包,其中一些来自anaconda的捆绑软件,而其他一些则来自其他来源,而没有问题.

I'm able to import other packages, some from anaconda's bundle and some from other sources without issue.

关于如何解决此问题的任何想法?

Any thoughts on how to resolve this?

推荐答案

这是前缀替换和反斜杠无法正确转义的问题.有关更多详细信息,请访问:

This is an issue with prefix replacement and backslashes not being escaped properly. More details at:

https://stackoverflow.com/a/38107818/1170370

这篇关于Python 3.5.1更新后无法导入numpy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆