Anaconda 无法在 Windows 7 上完全安装

Anaconda 无法在 Windows 7 上完全安装

[编辑] 这里的问题原来是我的硬盘问题。

我正在尝试在 Windows 7 上安装 Anaconda3。我没有其他 Python 安装。我尝试了几十次,每次运行之间都要清理并重新启动。我尝试了几个版本的 Anaconda3 安装程序。我尝试了管理员/非管理员和 PATH/register 的所有组合。无论我尝试什么,我都会得到相同的结果:安装完成,软件包被提取,但我没有菜单快捷方式,无法运行任何东西。显示详细信息有一堆错误,指向缺少模块和无法运行 conda.exe。我能够在运行 Windows 10 的另一台机器上毫无问题地安装。

下面粘贴的部分输出以提取消息堆栈之后出现的第一个错误开始。

*** BEGIN PARTIAL OUTPUT ***
Extract: anaconda-2019.07-py37_0.tar.bz2
[5504] Failed to execute script conda.exe
Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 149, in __init__
  File "ctypes\__init__.py", line 348, in __init__
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "conda.exe.py", line 45, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda_package_handling\api.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\entry.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\ffi.py", line 27, in <module>
  File "ctypes\__init__.py", line 426, in LoadLibrary
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\Hammer\\AppData\\Local\\Temp\\_MEI47362\\archive.dll'. Most probably this dynlib/dll was not found when the application was frozen.
Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 149, in __init__
  File "ctypes\__init__.py", line 348, in __init__
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages\conda\exceptions.py", line 1043, in __call__
  File "site-packages\conda\cli\main.py", line 84, in _main
  File "site-packages\conda\cli\conda_argparse.py", line 80, in do_call
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\cli\main_install.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\cli\install.py", line 19, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\core\index.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\core\package_cache_data.py", line 15, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda_package_handling\api.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\entry.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\ffi.py", line 27, in <module>
  File "ctypes\__init__.py", line 426, in LoadLibrary
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\Hammer\\AppData\\Local\\Temp\\_MEI16922\\archive.dll'. Most probably this dynlib/dll was not found when the application was frozen.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 149, in __init__
  File "ctypes\__init__.py", line 348, in __init__
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "conda.exe.py", line 88, in <module>
  File "site-packages\conda\cli\main.py", line 150, in main
  File "site-packages\conda\exceptions.py", line 1335, in conda_exception_handler
  File "site-packages\conda\exceptions.py", line 1046, in __call__
  File "site-packages\conda\exceptions.py", line 1090, in handle_exception
  File "site-packages\conda\exceptions.py", line 1101, in handle_unexpected_exception
  File "site-packages\conda\exceptions.py", line 1171, in print_unexpected_error_report
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\cli\main_info.py", line 19, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\core\index.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda\core\package_cache_data.py", line 15, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda_package_handling\api.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\conda_package_handling\tarball.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
  File "site-packages\libarchive\entry.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "C:\Users\Wani\mc36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
[5296] Failed to execute script conda.exe
  File "site-packages\libarchive\ffi.py", line 27, in <module>
  File "ctypes\__init__.py", line 426, in LoadLibrary
  File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\Hammer\\AppData\\Local\\Temp\\_MEI16922\\archive.dll'. Most probably this dynlib/dll was not found when the application was frozen.
Delete file: C:\ProgramFiles\Anaconda3\pkgs\env.txt
Output folder: C:\ProgramFiles\Anaconda3\conda-meta
Extract: history
Creating Anaconda3 menus...
Execute: "C:\ProgramFiles\Anaconda3\pythonw.exe" -E -s "C:\ProgramFiles\Anaconda3\Lib\_nsis.py" mkdirs
Running post install...
Execute: "C:\ProgramFiles\Anaconda3\pythonw.exe" -E -s "C:\ProgramFiles\Anaconda3\Lib\_nsis.py" post_install
Execute: "C:\ProgramFiles\Anaconda3\pythonw.exe" -E -s "C:\ProgramFiles\Anaconda3\pkgs\.cio-config.py" "C:\Users\Hammer\Downloads\Anaconda3-2019.07-Windows-x86_64.exe"
Created uninstaller: C:\ProgramFiles\Anaconda3\Uninstall-Anaconda3.exe
Completed

答案1

首先,我为我伪装成答案的问题道歉。按钮错误。
我的解决方案是:

  1. 卸载所有 Anaconda 版本
  2. 检查c:\users\user_name\appdata目录 conda 并将其删除
  3. 检查c:\users\user_name\目录.conda并删除它
  4. 安装Anaconda3-2019.03-Windows-x86_64.exe 661.7M 2019-04-04 16:00:30 bfb4da8555ef5b1baa064ef3f0c7b582
  5. 执行conda update conda
  6. 执行conda update anaconda
  7. 执行conda update --all
  8. 执行conda list anaconda$

数字 8 显示实际版本。
希望这对其他人有所帮助。

相关内容