0
我嘗試在Python中導入numpy包,並且最初由於路徑變量而面臨很多問題。處理完這個問題並導入numpy後,使用數組對象給我一個屬性錯誤。使用numpy.array會拋出一個AttributeError
>>import numpy
>>x=numpy.array([1,2,3])
Traceback (most recent call last):
File "<stdin>",line 1, in <module>
AttributeError: 'module' object has no attribute 'array'
請幫忙。
相同。我想問題是你的numpy安裝。 – Tobias