安装bokeh时出现问题:[WinError 126]找不到指定的模块

时间:2020-03-07 12:09:06

标签: python installation anaconda

由于我无法更新bokeh版本0.12.7,因此我用conda remove bokeh删除了该软件包。然后,我使用conda install -c bokeh bokeh安装了新的bokeh版本1.0.4。但是,我收到错误消息 [WinError 126]找不到指定的模块。奇怪的是,我可以看到这些文件夹和文件

  • bokeh-1.0.4-py37_0packaging-19.0-py37_0yaml-0.1.7-hc54c509_2bokeh-1.0.4-py37_0.tarpackaging-19.0-py37_0.taryaml-0.1.7-hc54c509_2.tar

在此目录 D:\ Users \ jng \ AppData \ Local \ Continuum \ anaconda3 \ pkgs 中。

我用Google搜索了 [WinError 126]找不到指定的模块,但无济于事。

有人可以解释该消息的含义并建议我如何解决该问题?

先谢谢了。

尝试安装bokeh时输出

(base) D:\Users\jng>conda install -c bokeh bokeh
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: D:\Users\jng09\AppData\Local\Continuum\anaconda3

  added / updated specs:
    - bokeh


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    bokeh-1.4.0                |             py_0        16.8 MB  bokeh
    futures-compat-1.0         |            py3_0          313 B  https://repo.continuum.io/pkgs/free
    ------------------------------------------------------------
                                           Total:        16.8 MB

The following NEW packages will be INSTALLED:

  bokeh              bokeh/noarch::bokeh-1.4.0-py_0
  futures-compat     pkgs/free/noarch::futures-compat-1.0-py3_0
  packaging          pkgs/free/win-64::packaging-16.8-py36_0
  yaml               pkgs/main/win-64::yaml-0.1.7-hc54c509_2


Proceed ([y]/n)? y


Downloading and Extracting Packages
bokeh-1.4.0          | 16.8 MB   |                                                              |   0%
futures-compat-1.0   | 313 B     |                                                              |   0%

[WinError 126] The specified module could not be found
[WinError 126] The specified module could not be found

(base) D:\Users\jng>pip install -i https://pypi.anaconda.org/bokeh/simple bokeh
Traceback (most recent call last):
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\Scripts\pip-script.py", line 3, in <module> import pip
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\__init__.py", line 26, in <module> from pip.utils import get_installed_distributions, get_prog
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\utils\__init__.py", line 27, in <module> from pip._vendor import pkg_resources
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3018, in <module> @_call_aside
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3004, in _call_aside f(*args, **kwargs)
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3046, in _initialize_master_working_set dist.activate(replace=False)
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2578, in activate declare_namespace(pkg)
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2152, in declare_namespace_handle_ns(packageName, path_item)
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2092, in _handle_ns_rebuild_mod_path(path, packageName, module)
  File "D:\Users\jng\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2121, in _rebuild_mod_path orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'

0 个答案:

没有答案