简体   繁体   English

ImportError:没有名为 scitools.std 的模块

[英]ImportError: No module named scitools.std

I installed Anaconda, but now that I wanted to use StringFunction in scitools.std I get error: ImportError: No module named scitools.std!我安装了 Anaconda,但现在我想在 scitools.std 中使用 StringFunction 我收到错误:ImportError: No module named scitools.std! So I did this:所以我这样做了:

sudo apt-get install python-scitools

apt-get install is going to install it into the system Python, not the Anaconda Python. apt-get install将其安装到系统Python中,而不是Anaconda Python中。 You need to use conda to install packages into Anaconda. 您需要使用conda将软件包安装到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). 没有针对Anaconda的正式scitools构建,但是我已经构建了一个并将其放在binstar上(我假设您使用的是Python 2.7、64位Linux)。 conda install -c asmeurer scitools will get it. conda install -c asmeurer scitools会得到它。

For Python3, Use scitools3 instead对于 Python3,请改用 scitools3

pip install scitools3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM