numpy 出现属性错误:
AttributeError: 'module' object has no attribute 'arange'
AttributeError: 'module' object has no attribute 'random'
我已经把 numpy 卸载重新安装了一遍,还是报错,请问达人这是肿么了?
numpy 出现属性错误:
AttributeError: 'module' object has no attribute 'arange'
AttributeError: 'module' object has no attribute 'random'
我已经把 numpy 卸载重新安装了一遍,还是报错,请问达人这是肿么了?
2 回答4.3k 阅读✓ 已解决
2 回答863 阅读✓ 已解决
1 回答4.1k 阅读✓ 已解决
3 回答857 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
4 回答2.6k 阅读
3 回答906 阅读✓ 已解决
你的 python file 文件名跟 numpy 同名, 在
import
的時候匯入了自己而非你想要的那個 numpy。改個名字應該就好了。
我回答過的問題: Python-QA