justin_bob
长河落雨
2019-10-10 16:07
采纳率: 100%
浏览 971

python conda install xxx 报错 找不到指定模块

(HelloWorld) C:\Users\justin>conda install cv2

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\exceptions.py", line 1062, in __call__
    return func(*args, **kwargs)
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\cli\main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\cli\install.py", line 116, in install
    if context.use_only_tar_bz2:
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda\base\context.py", line 664, in use_only_tar_bz2
    import conda_package_handling.api
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda_package_handling\api.py", line 12, in <module>
    from .tarball import CondaTarBZ2 as _CondaTarBZ2, libarchive_enabled
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\conda_package_handling\tarball.py", line 11, in <module>
    import libarchive
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\libarchive\__init__.py", line 1, in <module>
    from .entry import ArchiveEntry
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\libarchive\entry.py", line 6, in <module>
    from . import ffi
  File "F:\Miniconda3\envs\HelloWorld\lib\site-packages\libarchive\ffi.py", line 27, in <module>
    libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
  File "F:\Miniconda3\envs\HelloWorld\lib\ctypes\__init__.py", line 442, in LoadLibrary
    return self._dlltype(name)
  File "F:\Miniconda3\envs\HelloWorld\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

$ F:\Miniconda3\envs\HelloWorld\Scripts\conda-script.py install cv2


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

相关推荐