标签: python-sacred

将 Sacred 模块与 iPython 结合使用

我正在尝试设置sacredPython,并且正在阅读教程。我能够pip install sacred毫无问题地设置神圣使用。我在运行基本代码时遇到问题:

from sacred import Experiment

ex = Experiment("hello_world")
Run Code Online (Sandbox Code Playgroud)

运行此代码将返回 a ValueError

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-25-66f549cfb192> in <module>()
      1 from sacred import Experiment
      2 
----> 3 ex = Experiment("hello_world")

/Users/ryandevera/anaconda/lib/python2.7/site-packages/sacred/experiment.pyc in __init__(self, name, ingredients)
     42         super(Experiment, self).__init__(path=name,
     43                                          ingredients=ingredients,
---> 44                                          _caller_globals=caller_globals)
     45         self.default_command = ""
     46         self.command(print_config, unobserved=True)

/Users/ryandevera/anaconda/lib/python2.7/site-packages/sacred/ingredient.pyc in __init__(self, path, ingredients, _caller_globals)
     48         self.doc = _caller_globals.get('__doc__', "")
     49         self.sources, self.dependencies = \
---> 50             gather_sources_and_dependencies(_caller_globals) …
Run Code Online (Sandbox Code Playgroud)

python ipython python-2.7 python-sacred

5
推荐指数
1
解决办法
2049
查看次数

python 包可以通过 pip 安装,但不能通过 conda

我需要我下载的新代码库的神圣包。它需要神圣。 https://pypi.python.org/pypi/sacred

conda install Holy 失败并出现 PackageNotFoundError:当前 osx-64 通道中缺少包:-神圣

软件包站点上的说明仅说明了如何使用 pip 进行安装。在这种情况下你会怎么做?

installation conda python-sacred

4
推荐指数
1
解决办法
6118
查看次数