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 回答5.3k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
4 回答1.6k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
1 回答2.5k 阅读✓ 已解决
2 回答971 阅读✓ 已解决
你的 python file 文件名跟 numpy 同名, 在
import
的時候匯入了自己而非你想要的那個 numpy。改個名字應該就好了。
我回答過的問題: Python-QA