matplotlib - Installing Numpy for Python 3.3 on Mac Mavericks OS 10.9 -
i trying install numpy (so can run matplotlibs) python 3.3 on mac mavericks. have windows machine , able install correctly downloading .exe files. however, new mac world, , have never installed via command line before.
i have downloaded anaconda , xcode.
i have tried:
pip install numpy
and following output:
requirement satisfied (use --upgrade upgrade): numpy in ./anaconda/lib/python2.7/site-packages
it looks has 2.7 installed already, want 3.3! so, next tried:
pip-3.3 install numpy
and following output:
pip-3.3: command not found
i have tried use anaconda after these have failed (having never used anaconda before):
conda create -n myenv python=3 conda install -n myenv numpy scipy matplotlib ipython
after said , done, got message:
# requested packages installed. # packages in environment @ /users/username/anaconda/envs/myenv: # ipython 2.2.0 py34_1 matplotlib 1.3.1 np18py34_1 numpy 1.8.2 py34_0 scipy 0.14.0 np18py34_0
this didn't work either when attempted import matplotlib python 3.3. appears me has not installed numpy 3.3, 3.4.
so, installed python 3.4. however, looks there compatibility issues between matplotlib , 3.4, 3.3... additionally, not import numpy 3.4 anyway.
a number of topics on here people posted similar problems had os lion. new mac person, can't seem follow directions because version newer mavericks. looked here, example: numpy in idle (python 3.3.2) on mac osx 10.8
when type
which python
into terminal,
/users/username/anaconda/bin/python
i not
/library/frameworks/python.framework/versions/3.3
like user in topic suggested should. in fact, /library folder appears hard find on mavericks.. but, figured out how make ~/library visible. next
cd library/frameworks ls
and saw:
ewsmac-gc.framework
there no python.framework. @ points, feel should have directory in order continue. perhaps not. lost @ how continue @ point, , if has suggestions, appreciated.
i have numpy installed correctly python 3.4, not python 3.3.
what did terminal:
cd ../.. pwd
output:
/
commands:
cd usr/local/bin ls
output:
2to3 python3-32 pythonw3.3 2to3-3.3 python3-config pythonw3.3-32 2to3-3.4 python3.3 pyvenv brew python3.3-32 pyvenv-3.3 easy_install-3.4 python3.3-config pyvenv-3.4 idle3 python3.3m tclselect idle3.3 python3.3m-config tclsh idle3.4 python3.4 tclsh8.6 pip3 python3.4-32 tclvfse pip3.4 python3.4-config teacup pydoc3 python3.4m wish pydoc3.3 python3.4m-config wish8.6 pydoc3.4 pythonw3 python3 pythonw3-32
commands:
pip3 install numpy
there lot of output, many lines looked like:
downloading numpy-1.8.2-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_
and output:
10_9_x86_64.whl (12.0mb): 12.0mb downloaded installing collected packages: numpy installed numpy cleaning up...
this command installed numpy 3.4, , not 3.3, intended. stated above, have both on system. don't know if have installed 3.3 if had uninstalled 3.4 first.
i tried install numpy 3.3:
pip3 install numpy python3.3
output:
requirement satisfied (use --upgrade upgrade): numpy in /library/framework/python.framework/versions/3.4/lib/python3.4/site-packages downloading/unpacking python3.3 not find downloads satisfy requirement python3.3 cleaning up... no distributions @ found python3.3
i tried importing numpy python 3.4 , worked. however, primary goal use matplotlib. attempted install matplotlib command line.
pip3 install matplotlib
this worked, , can use matplotlib in python 3.4 , idle 3.4.
unfortunately, doesn't satisfy requirements python 3.3... now, 3.4 ok too.
Comments
Post a Comment