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 卸载重新安装了一遍,还是报错,请问达人这是肿么了?
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.5k 阅读✓ 已解决
1 回答3.8k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
你的 python file 文件名跟 numpy 同名, 在
import
的時候匯入了自己而非你想要的那個 numpy。改個名字應該就好了。
我回答過的問題: Python-QA