Pypi模块的模块导入错误
问题描述:
我试图将pypi模块(thinkx 1.1.2)导入spyder。它安装在anaconda上并显示在conda列表上。我的Python路径文件夹是我的anaconda文件夹。当我试图导入thinkx到Spyder的获得: 进口thinkx 回溯(最近通话最后一个):Pypi模块的模块导入错误
文件 “”,1号线,在 进口thinkx
导入错误:没有名为 'thinkx' 模块
答
根据module README,thinkx
不公开包名为thinkx
的包。
It provides the following modules:
thinkbayes
: Code for Think Bayes.thinkstats2
: Code for Think Stats, 2nd editionthinkbayes2
: Code for Think Bayes, 2nd edition, not yet published.thinkdsp
: Code for Think DSPthinkplot
: Plotting code used in all of the books, mostly wrapper functions for matplotlib.pyplot
尝试:
import thinkbayes