我使用
python 2.7.2 | EPD 7.1-1(64位),由于某种原因numpy.random.choice无法正常工作:
从终端窗口:
d-108-179-168-72:~ home$python
Enthought Python Distribution -- www.enthought.com
Version: 7.1-1 (64-bit)
Python 2.7.2 |EPD 7.1-1 (64-bit)| (default, Jul 3 2011, 15:56:02)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "packages", "demo" or "enthought" for more information.
>>> import numpy as np
>>> np.random.choice(5, 3)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'choice'
对问题可能是什么的任何想法?
谢谢