[MacPorts] #51655: Could not import numpy into python 2.7

MacPorts noreply at macports.org
Thu Jun 16 23:13:59 PDT 2016


#51655: Could not import numpy into python 2.7
------------------------------+--------------------------------
 Reporter:  mahajan.smriti@…  |      Owner:  macports-tickets@…
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.3.4
 Keywords:  numpy, python     |       Port:  py-numpy, python
------------------------------+--------------------------------
 Following https://astrofrog.github.io/macports-python/ I installed Python,
 numpy, scipy and matplotlib and configured as directed in the link.
 But when I try to import numpy as a module I get the error "ImportError:
 No module named numpy".
 Instead if I try using py27-numpy, then I get a syntax error. While "which
 python returns
 "/Library/Frameworks/Python.framework/Versions/2.7/bin/python", "which
 numpy" and "which py27-numpy" give no output.

 I am new to python and would greatly appreciate any help with this
 installation. I am using OSX 10.9.8. Macports seems to have installed
 py27-numpy @1.9.0_0, py27-numpy @1.11.0_0+gfortran (active),
 python2_select @0.0_1 (active), python27 @2.7.8_1, python27 @2.7.11_2
 (active), python34 @3.4.4_1 (active)
 among others.

-- 
Ticket URL: <https://trac.macports.org/ticket/51655>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list