0

我正在尝试在 Windows 7 系统上使用 Miniconda 2 设置 FiPy,并使用推荐 python -c "import fipy; fipy.test()"的.

不幸的是,该套件没有得到测试结果,而是给了我一个堆栈跟踪错误:

running egg_info
creating c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info
writing c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\PKG-INFO
writing top-level names to c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\top_level.txt
writing dependency_links to c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\dependency_links.txt
writing manifest file 'c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found

reading manifest file 'c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\SOURCES.txt'
writing manifest file 'c:\users\bram\appdata\local\temp\tmpbzt0mv\FiPy.egg-info\SOURCES.txt'
running test
running build_ext
fipy version 3.1.3
numpy version 1.12.0
pysparse is not installed
scipy version 0.18.1
matplotlib is not installed
gist is not installed
mpi4py is not installed
mpi4py is not installed
enthought.mayavi is not installed
gmsh is not installed
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Users\Bram\Miniconda2\lib\site-packages\fipy\__init__.py", line 164, in test
    cmdclass={'test': _TestClass(_test)})
  File "D:\Users\Bram\Miniconda2\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "D:\Users\Bram\Miniconda2\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "D:\Users\Bram\Miniconda2\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "D:\Users\Bram\Miniconda2\lib\site-packages\setuptools-27.2.0-py2.7.egg\setuptools\command\test.py", line 172, in run
  File "D:\Users\Bram\Miniconda2\lib\site-packages\fipy\tests\testClass.py", line 236, in run_tests
    testLoader = loader_class()
  File "D:\Users\Bram\Miniconda2\lib\unittest\main.py", line 94, in __init__
    self.parseArgs(argv)
  File "D:\Users\Bram\Miniconda2\lib\unittest\main.py", line 149, in parseArgs
    self.createTests()
  File "D:\Users\Bram\Miniconda2\lib\unittest\main.py", line 158, in createTests
    self.module)
  File "D:\Users\Bram\Miniconda2\lib\unittest\loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "D:\Users\Bram\Miniconda2\lib\unittest\loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'testFiPy'

任何人都可以帮我解决这个问题吗?我不知道从哪里开始这个结果。

4

1 回答 1

0

只是想为那些(像我一样)对 git 和 conda 不熟悉的人添加 - 从开发分支安装 FiPy 你应该(按照这个答案):

  1. 激活您的 conda 环境:(source activate myenvactivate myenv用于 Windows)
  2. 安装 git 和 pip:conda install git pip
  3. 安装 FiPy:pip install git+git://github.com/usnistgov/fipy@develop
于 2019-02-01T08:04:41.297 回答