问题
I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can anyone point me to instructions for BEGINNERS on this installation? For example, most start with a compiling step - I'm not sure how to do this. I'd appreciate any help you can give. Thanks.
回答1:
If this is a fresh python install:
- Type
which python
into a terminal window to make sure that the correct python is selected. I am guessing that this should be/Library/Frameworks/Python.framework/Versions/3.3
. - Download
setuptools
andpip
fromhttps://pypi.python.org
and untar both (can just double click in a osx window). - In a terminal change directory to the downloaded setuptools folder:
cd ~/Downloads/setuptools-x.x.x
- Type
python setup.py install
. - Repeat 3 & 4 for pip.
- Now you can type
pip install numpy
and it will download and install numpy for you.
You might want to install everything through a single executable package. A free example can be found here (Anaconda), this includes the entire scipy suite and some extras. You will likely not need the majority of these, but it does include numpy and scipy in a very convenient package.
回答2:
These should be simple enough instructions for you http://docs.python.org/3/using/mac.html
来源:https://stackoverflow.com/questions/17819227/numpy-in-idle-python-3-3-2-on-mac-osx-10-8