2

I had everything installed good on my laptop. Everything was working. Today when i wanted to work with my projects again just everything suddenly gives an error on imports. It's not just one package, but multiple. The only thing I could think of is Windows Update, but actually I doubt this would be the cause of the problem.

I have everything installed in 32-bit since some packages were only 32-bit. I already reinstalled everything and restarted several times. I'm not very experienced with Python, so thats why I'm wondering if anybody with more knowledge could help me with this.

The packages installed are: CherryPy, Cython, Oursql, PIL, pywin32, setuptools

Thanks in advance!!

4

2 回答 2

3

我刚刚遇到了类似的问题。一周前一切正常,但今天突然导入失败。

我发现在我尝试导入的模块目录中,有一个损坏的 .pyc 文件。我删除了那个文件,然后一切都恢复了。

于 2017-07-28T22:13:20.283 回答
0

你确定他们已经安装了吗?

在你的 python shell 中,运行

help('modules')

然后你也可以检查你的 PYTHONPATH

import sys
print sys.path

希望能帮助到你。

于 2013-02-16T14:00:06.510 回答