Installed Python libraries scipy and matplotlib but can't import -
i'm using python 3.4.2, , believe downloaded python.org. i'm running on mac el capitan.
i tried downloading scipy using anaconda's graphic installation interface. after running installer, opened idle , tried:
>>> import scipy
but got error:
traceback (most recent call last): file "<pyshell#0>", line 1, in <module> import scipy importerror: no module named 'scipy'
i tried same thing numpy, got same error.
i tried installing matplotlib, time figured should try using pip on command line. first tried:
dhcp-wifi-8021x-155-41-121-77:~ theman$ pip install matplotlib requirement satisfied: matplotlib in ./anaconda/lib/python3.6/site-packages requirement satisfied: numpy>=1.7.1 in ./anaconda/lib/python3.6/site-packages (from matplotlib) requirement satisfied: six>=1.10 in ./anaconda/lib/python3.6/site-packages (from matplotlib) requirement satisfied: python-dateutil in ./anaconda/lib/python3.6/site-packages (from matplotlib) requirement satisfied: pytz in ./anaconda/lib/python3.6/site- packages (from matplotlib) requirement satisfied: cycler>=0.10 in ./anaconda/lib/python3.6/site-packages (from matplotlib) requirement satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 in ./anaconda/lib/python3.6/site-packages (from matplotlib)
but trying import scipy, numpy, , matplotlib still returned same errors. tried uninstalling , reinstalling scipy pip, didn't change anything.
are modules not installing properly? installed i'm not importing them right?
i don't think there's enough there answer question fully, @ guess suspect issue's path, or possibly ambiguity python you're running.
do same result if run python terminal?
(open terminal, type python, in interpreter import scipy
)
in idle interpreter if run:
import sys sys.path
does include you'd expect scipy/matplotlib installed?
Comments
Post a Comment