ImportError:DLL加载失败:找不到指定的模块。 Mpi4py

时间:2018-07-15 07:05:06

标签: python git github importerror nose

我在Git Bash上遇到了ImportError,我认为这与以下行有关:

File "C:\users\sammy\desktop\nanonet\tb\tbmpi_script.py", line 3, in <module>
    from mpi4py import MPI

我添加了以下所有代码。我正在处理Github仓库:https://github.com/freude/NanoNet

我做了一些研究,但不确定为什么会收到此错误。我在win8(64bit)上运行Python 2.7.15(64 bit)。任何帮助将不胜感激!

Sammy@Sam MINGW64 /
$ cd /c/

Sammy@Sam MINGW64 /c
$ python --version
Python 2.7.15

Sammy@Sam MINGW64 /c
$ cd /c/users/sammy/desktop/nanonet

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ ls
__pycache__/  get-pip.pyc         LICENSE      requirements.txt  tb.egg-info/
docs/         input_samples/      MANIFEST.in  setup.py          test/
get-pip.py*   jupyter_notebooks/  README.md    tb/

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ cd /test/
bash: cd: /test/: No such file or directory

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ cd /test
bash: cd: /test: No such file or directory

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ cd /c/users/sammy/desktop/nanonet/test

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet/test (master)
$ nosetests --with-doctest
bash: nosetests: command not found

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet/test (master)
$ cd /c/users/sammy/desktop/nanonet

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ pip install -r requirements.txt
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from -r requirements.txt (line 1))
Collecting matplotlib (from -r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/3f/a5/8e2ec9a471175be0239dbf8bc1f30d75a04a244e49e1c718e194dd45292e/matplotlib-2.2.2-cp27-cp27m-win_amd64.whl (8.4MB)
Collecting numpy==1.14.1 (from -r requirements.txt (line 3))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/3b/98/e5594863d96cf79bb89bb4f49191403136c08b8353c3e3ebcb17cc6554e3/numpy-1.14.1-cp27-none-win_amd64.whl (13.3MB)
Collecting scipy (from -r requirements.txt (line 4))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/d2/a7/0d698589a3c6c44f81078a52518c8e64c4ed579a862105b2bff5a1f14ff4/scipy-1.1.0-cp27-none-win_amd64.whl (31.5MB)
Collecting PyYAML (from -r requirements.txt (line 5))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/df/4d/1ef8d60464a171112401e17a3a3e88fdb1d5b44af7606e8652b2f39ee9ce/PyYAML-3.13-cp27-cp27m-win_amd64.whl (209kB)
Collecting nose (from -r requirements.txt (line 6))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/99/4f/13fb671119e65c4dce97c60e67d3fd9e6f7f809f2b307e2611f4701205cb/nose-1.3.7-py2-none-any.whl (154kB)
Collecting mpi4py (from -r requirements.txt (line 7))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/4d/14/4df0ba0247a94c93a227d99f7d0ffb7a06b0d33bc73460c5ea16ead5b800/mpi4py-3.0.0-cp27-cp27m-win_amd64.whl (489kB)
Collecting python-dateutil>=2.1 (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
Collecting pytz (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)
Collecting backports.functools-lru-cache (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting six>=1.10 (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting cycler>=0.10 (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib->-r requirements.txt (line 2))
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/e0/3a/2fda27dacdfafcf8f40cce2be09890b1443af3e65c3ab8f7294216a2946b/kiwisolver-1.0.1-cp27-none-win_amd64.whl (64kB)
Installing collected packages: six, python-dateutil, pyparsing, numpy, pytz, backports.functools-lru-cache, cycler, kiwisolver, matplotlib, scipy, PyYAML, nose, mpi4py
Successfully installed PyYAML-3.13 backports.functools-lru-cache-1.5 cycler-0.10.0 kiwisolver-1.0.1 matplotlib-2.2.2 mpi4py-3.0.0 nose-1.3.7 numpy-1.14.1 pyparsing-2.2.0 python-dateutil-2.7.3 pytz-2018.5 scipy-1.1.0 six-1.11.0
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ pip install .
Processing c:\users\sammy\desktop\nanonet
Installing collected packages: tb
  Running setup.py install for tb: started
    Running setup.py install for tb: finished with status 'done'
Successfully installed tb-0.5
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet (master)
$ cd /c/users/sammy/desktop/nanonet/test

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet/test (master)
$ nosetests --with-doctest
.........E
======================================================================
ERROR: Failure: ImportError (DLL load failed: The specified module could not be found.)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\nose\loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "c:\python27\lib\site-packages\nose\importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "c:\python27\lib\site-packages\nose\importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "C:\users\sammy\desktop\nanonet\test\test_scripts_and_initializer.py", line 3, in <module>
    import tb.tbmpi_script as tbmpi_script
  File "C:\users\sammy\desktop\nanonet\tb\tbmpi_script.py", line 3, in <module>
    from mpi4py import MPI
ImportError: DLL load failed: The specified module could not be found.

----------------------------------------------------------------------
Ran 10 tests in 5.382s

FAILED (errors=1)

Sammy@Sam MINGW64 /c/users/sammy/desktop/nanonet/test (master)
$

0 个答案:

没有答案