Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/291.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 安装时出现叮当声错误";“依赖性”;带pip的包装_Python_Clang_Pip_Statsmodels - Fatal编程技术网

Python 安装时出现叮当声错误";“依赖性”;带pip的包装

Python 安装时出现叮当声错误";“依赖性”;带pip的包装,python,clang,pip,statsmodels,Python,Clang,Pip,Statsmodels,我试图在python中测试多元线性回归的实现。它需要“statsmodels.api”,但是当我尝试执行“import statsmodels.api”时,我得到了错误: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/statsmodels/api.py in <module>() 16 from .duration.hazard_regression import

我试图在python中测试多元线性回归的实现。它需要“statsmodels.api”,但是当我尝试执行“import statsmodels.api”时,我得到了错误:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/statsmodels/api.py in <module>()
     16 from .duration.hazard_regression import PHReg
     17 from .nonparametric import api as nonparametric
---> 18 from . import distributions
     19 from .__init__ import test
     20 from . import version

ImportError: cannot import name distributions
但是,它失败了,出现了一个叮当声错误:

/usr/bin/clang++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/distributions/lp/special.o -ldistributions_shared -lm -o build/lib.macosx-10.6-intel-2.7/distributions/lp/special.so
ld: library not found for -ldistributions_shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1
我已经尽了最大的努力想弄清楚什么是共享的,但我似乎弄不明白

当我尝试更新xcode时没有运气。我所有的网络搜索都无法帮助我解决这个问题。任何帮助都将不胜感激


顺便说一句,我运行的是OSX 10.10.5,使用的是Python 2.7,这里的问题是您的statsmodels安装被破坏了。pypi包与statsmodels无关。可能它与OSX不兼容。您可能想尝试重新安装statsmodels或切换到二进制发行版,如anacondaHi cel,谢谢您的评论。我从来没有听说过anaconda,它听起来像是根据需要安装软件包的绝佳替代品。我假设anaconda没有什么特别之处,除了它是一种“有保证”的方式,可以用许多包安装python?也就是说,如果我想在以后添加额外的打包软件,我可以使用pip?anaconda发行版为您提供了
conda
,它基本上是一个新的软件包管理器,为最常见的科学软件包提供二进制软件包。当然,您可以选择使用
conda
安装一些软件包,也可以使用
pip
安装一些软件包。因此,换句话说,anaconda不想要任何软件包,除非它有。bins,huht这里的问题是,您的statsmodels安装已中断。pypi包与statsmodels无关。可能它与OSX不兼容。您可能想尝试重新安装statsmodels或切换到二进制发行版,如anacondaHi cel,谢谢您的评论。我从来没有听说过anaconda,它听起来像是根据需要安装软件包的绝佳替代品。我假设anaconda没有什么特别之处,除了它是一种“有保证”的方式,可以用许多包安装python?也就是说,如果我想在以后添加额外的打包软件,我可以使用pip?anaconda发行版为您提供了
conda
,它基本上是一个新的软件包管理器,为最常见的科学软件包提供二进制软件包。当然,你可以选择安装一些带有
conda
的软件包和一些带有
pip
的软件包。所以,换句话说,那条蟒蛇不想要任何软件包,除非它有.bin,嗯
/usr/bin/clang++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/distributions/lp/special.o -ldistributions_shared -lm -o build/lib.macosx-10.6-intel-2.7/distributions/lp/special.so
ld: library not found for -ldistributions_shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1