0

I installed Anaconda, but now that I wanted to use StringFunction in scitools.std I get error: ImportError: No module named scitools.std! So I did this:

sudo apt-get install python-scitools

Still didn't work. How can I help my computer "find scitools"?

Thank you for your time.

Kind regards, Marius

Mikkel Rev
  • 863
  • 3
  • 12
  • 31
  • try scipy.std instead. – M4rtini Jan 26 '14 at 22:01
  • 1
    "from scipy.std import StringFunction" returns "ImportError: No module named std". "from scipy import StringFunction" returns "ImportError: cannot import name StringFunction". What do you think? Thanks.M – Mikkel Rev Jan 26 '14 at 22:20
  • What happen if you try to simply import scitools? and it should be `from scitools.StringFunction import StringFunction`. If you have anaconda install you should be able to get it by calling `conda install scitools` – M4rtini Jan 26 '14 at 23:04
  • "from scitools.StringFunction import StringFunction" => "ImportError: No module named scitools.StringFunction". And "from scitools import StringFunction" => "ImportError: No module named scitools". And "conda install scitools" => "Error: No packages found matching: scitools.std" – Mikkel Rev Jan 27 '14 at 15:54

3 Answers3

0

apt-get install is going to install it into the system Python, not the Anaconda Python. You need to use conda to install packages into Anaconda.

There isn't an official scitools build for Anaconda, but I've built one and put it on binstar (I'm assuming you are using Python 2.7, 64-bit Linux). conda install -c asmeurer scitools will get it.

asmeurer
  • 86,894
  • 26
  • 169
  • 240
0

In anaconda:

conda install --channel johannr scitools

ref to :
hplgit/scitools: Additional scientific computing functionality in Python - extensions to NumPy/SciPy++

Kevin Chou
  • 489
  • 5
  • 8
0

For Python3, Use scitools3 instead

pip install scitools3

See also: wikis of scitools and pypi of scitools3

Kardi Teknomo
  • 1,375
  • 16
  • 24