http://conda.pydata.org/docs/using/envs.html上的conda文档解释了如何与其他人共享环境.
但是,文档告诉我们这不是跨平台:
NOTE: These explicit spec files are not usually cross platform, and
therefore have a comment at the top such as # platform: osx-64 showing the
platform where they were created. This platform is the one where this spec
file is known to work. On other platforms, the packages specified might not
be available or dependencies might be missing for some of the key packages
already in the spec.
NOTE: Conda does not check architecture or dependencies when …Run Code Online (Sandbox Code Playgroud) 我希望conda的root环境能够复制另一个环境中的所有软件包.如何才能做到这一点?
我对conda install&之间的区别有一个合理的理解pip install; 如何pip只安装python包并conda可以安装非python二进制文件.但是,这两者之间存在一些重叠.这让我想问:
对于是否使用conda或pip两者都提供包装有什么经验法则?
例如,TensorFlow两个存储库都可以使用,但是来自tensorflow文档:
在Anaconda中,我们建议使用
pip install命令安装TensorFlow ,而不是使用conda install命令.
但是,有许多重叠的其他包一样numpy,scipy等等.
但是,此Stackoverflow答案表明conda install应该是默认值,并且pip只应在包不可用时使用conda.即使对于TensorFlow其他仅限python的包,这是真的吗?
所以我已经能够使用 pip 成功安装 mplfinance 并且当我单独导入它时我没有收到任何错误。虽然当我这样做时:from mplfinance import candlestick_ohlc我ImportError: cannot import name 'candlestick_ohlc' from 'mplfinance'再次检查命令提示符时出现错误,它说它已成功安装mplfinance。为什么我会收到此错误?
python installation importerror candlestick-chart mplfinance