Ошибка при установке python 0x80070642

Whenever I try to install Python 3.6.3 (32-bit) to my Windows 7 laptop at work, the installer fails with the following error.

0x80070642 — User cancelled installation

This error consistently occurs half-way through the installation while installing «Python 3.6.3 Standard Library (32-bit)», as indicated by Python’s progress bar turning red in the taskbar icon.

Looking at the installer log, I noticed a few entries which report Failed to secure cache path:, but searching these errors hasn’t provided any additional details.

Error 0x80070005: Failed to secure cache path: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to secure cache directory: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to get cached path for package with cache id: {C093353B-F9EE-4A06-923D-C1B340B82886}v3.6.6119.0
Error 0x80070005: Failed to cache payload: launcher_AllUsers
Failed to cache payload: launcher_AllUsers from working path: C:\Users\SVASCE~1\AppData\Local\Temp\{973D88A7-E2AD-4A3C-AA24-79C5637B217A}\launcher_AllUsers, error: 0x80070005.

Всякий раз, когда я пытаюсь установить Python 3.6.3 (32-разрядный) на свой ноутбук под управлением Windows 7, программа установки не работает со следующей ошибкой.

0x80070642 — Отменена пользователем установка

Эта ошибка последовательно возникает на полпути через установку при установке «Стандартная библиотека Python 3.6.3 (32-разрядная версия)», о чем свидетельствует индикатор выполнения Python, красный цвет которого отображается на значке панели задач.

Глядя на журнал установщика, я заметил несколько записей, в которых сообщается о том, что не Failed to secure cache path: но поиск этих ошибок не предоставил никаких дополнительных сведений.

Error 0x80070005: Failed to secure cache path: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to secure cache directory: C:\ProgramData\Package Cache\
Error 0x80070005: Failed to get cached path for package with cache id: {C093353B-F9EE-4A06-923D-C1B340B82886}v3.6.6119.0
Error 0x80070005: Failed to cache payload: launcher_AllUsers
Failed to cache payload: launcher_AllUsers from working path: C:\Users\SVASCE~1\AppData\Local\Temp\{973D88A7-E2AD-4A3C-AA24-79C5637B217A}\launcher_AllUsers, error: 0x80070005.

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

GarethMoger mannequin opened this issue

Oct 26, 2017

· 2 comments

Comments

@GarethMoger

BPO 31875
Nosy @pfmoore, @tjguk, @zware, @zooba
PRs
  • bpo-31975 (PEP 565): Show DeprecationWarning in __main__ #4458
  • Files
  • Python 3.6.1 (32-bit)_20171026151143.log: Installation log
  • Python 3.6.1 (32-bit)_20171026151143.log: Install log
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-10-19.22:44:16.526>
    created_at = <Date 2017-10-26.14:16:27.789>
    labels = ['OS-windows']
    title = 'Error 0x80070642: Failed to install MSI package.'
    updated_at = <Date 2021-10-19.22:44:16.525>
    user = 'https://bugs.python.org/GarethMoger'

    bugs.python.org fields:

    activity = <Date 2021-10-19.22:44:16.525>
    actor = 'steve.dower'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-19.22:44:16.526>
    closer = 'steve.dower'
    components = ['Windows']
    creation = <Date 2017-10-26.14:16:27.789>
    creator = 'Gareth Moger'
    dependencies = []
    files = ['47240', '47241']
    hgrepos = []
    issue_num = 31875
    keywords = ['patch']
    message_count = 2.0
    messages = ['305058', '404370']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'Gareth Moger']
    pr_nums = ['4458']
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue31875'
    versions = ['Python 3.6']

    @GarethMoger



    Copy link


    Mannequin


    Author

    I had my work computer re-imaged this week but Python 3.6.1 is gone and I am unable to install.

    I have tried to completely remove it with CCleaner and any other references I found but it still will not install. I am installing the same version as before.

    Following the advice from another post, I installed on another machine and then copied the folder onto my work machine but was unable to uninstall/repair as described.

    Attached is the log file.

    @zooba

    We’d also need the other log files from %TEMP% in this case, but I suspect we’re not going to get them now.

    The associated PR is not related to this bug.

    2 participants

    @iritkatriel

    @zooba

    Whenever I try to install Python 3.6.3 (32-bit) to my Windows 7 laptop at work, the installer fails with the following error.

    0x80070642 – User cancelled installation

    This error consistently occurs half-way through the installation while installing «Python 3.6.3 Standard Library (32-bit)», as indicated by Python’s progress bar turning red in the taskbar icon.

    Looking at the installer log, I noticed a few entries which report Failed to secure cache path:, but searching these errors hasn’t provided any additional details.

    Error 0x80070005: Failed to secure cache path: C:\ProgramData\Package Cache\
    Error 0x80070005: Failed to secure cache directory: C:\ProgramData\Package Cache\
    Error 0x80070005: Failed to get cached path for package with cache id: {C093353B-F9EE-4A06-923D-C1B340B82886}v3.6.6119.0
    Error 0x80070005: Failed to cache payload: launcher_AllUsers
    Failed to cache payload: launcher_AllUsers from working path: C:\Users\SVASCE~1\AppData\Local\Temp\{973D88A7-E2AD-4A3C-AA24-79C5637B217A}\launcher_AllUsers, error: 0x80070005.
    

    This error message occurs when the user cancels the installation process of Python. 
    
    This may happen if the user decides to terminate the installation process midway or if there are some issues with the system that prevent the installation from completing successfully. 
    
    To fix this issue, try to download the latest version of Python and reinstall it, ensuring that the installation process is allowed to complete uninterrupted. Additionally, ensure that your system meets the requirements for installing Python.

    Troubleshooting Error 0x80070642: Causes and Solutions

    Error 0x80070642 is a common error that you may encounter when working with Python. This error message suggests that the Windows Installer service has been disabled, and as a result, it cannot install or uninstall programs.
    
    The following are some of the common causes of Error 0x80070642:
    
    1. The Windows Installer service is not running.
    2. There is some malware or virus which is disrupting the installation process.
    3. The system's registry has been corrupted.
    4. There is a conflict between the Windows Installer and the anti-virus software.
    5. There is a problem with the Windows Update service.
    
    Here are some of the solutions you can try to fix Error 0x80070642:
    
    1. Restart the Windows Installer service: Press Windows key + R to open the Run dialog box. Type services.msc and hit Enter. Look for the Windows Installer service and check if it is running. If not, right-click on it and select Start.
    
    2. Run a virus scan: Use a reliable antivirus software to scan your computer for any threats. If any malware or virus is detected, remove it immediately.
    
    3. Use System File Checker: Open Command Prompt as administrator. Type sfc /scannow and hit Enter. Wait for the scan to complete and then restart your PC.
    
    4. Temporarily disable anti-virus: Some anti-virus programs can interfere with the installation process. Disable your anti-virus temporarily and try installing the program again.
    
    5. Use Windows Update Troubleshooter: Open the Settings app and go to Update & Security. Click on Troubleshoot and then select Windows Update. Run the troubleshooter and restart your computer.
    
    If none of these solutions work, you may need to seek professional assistance to further troubleshoot the issue.

    Alternative Ways to Install Python on Windows

    1. Using Anaconda: Anaconda is a distribution of Python and R that includes scientific packages, tools, and libraries used for data analysis and machine learning. It can be downloaded from the Anaconda website and installed on Windows.
    
    2. Using Python.org: The official Python website has an installer for Windows that can be downloaded and installed easily.
    
    3. Using Windows Store: Python can also be downloaded from the Microsoft Store. This method is useful if you prefer a user-friendly installation process and a simple GUI interface.
    
    4. Using Chocolatey: Chocolatey is a package manager for Windows that allows you to easily install and manage software packages. It can be used to install Python by running the command 'choco install python' in the command prompt.
    
    5. Using Miniconda: Miniconda is a minimal version of Anaconda that includes only the essential packages needed to run Python. It can be downloaded and installed on Windows for a lightweight Python distribution.

    Best Practices to Avoid Python Installation Errors

    1. Use a virtual environment - A virtual environment is a tool that helps to keep dependencies required by different projects separate. It avoids conflicts between them and ensures that the right versions of all required packages are installed.
    
    2. Use a package manager - A package manager is a tool that helps to install, upgrade, and manage packages easily. It ensures that all dependencies required by a program are installed correctly.
    
    3. Check system requirements - Before installing any package, it is essential to check the system requirements. Some packages require a specific version of Python, or they may require specific operating systems.
    
    4. Read installation instructions carefully - Always read the installation instructions carefully before installing any package. Follow the instructions step by step to avoid any errors.
    
    5. Try to install from official sources - It is always recommended to install packages from official sources to ensure that they are the latest and most stable versions.
    
    6. Avoid using outdated versions - Using outdated versions of Python and packages can cause compatibility issues and lead to installation errors.
    
    7. Test installation - After installing any package, it is essential to test its functionality to ensure that it has been installed correctly.

    Conclusion:

    Python is a popular programming language, but sometimes, installation issues can come up, such as the error message "0x80070642 - User cancelled installation". This error can have various underlying causes, including antivirus software, user permissions, or corrupted installer files. Troubleshooting this error involves trying different solutions such as running the installer as an administrator, disabling antivirus, or clearing outdated system files. However, if the error persists, there are alternative ways to install Python on Windows, such as using a third-party package manager or a virtual machine. To prevent installation errors, it's also important to follow best practices, such as keeping the operating system and drivers up to date, using a clean boot to avoid conflicts, and verifying the integrity of the installer files.



    Понравилась статья? Поделить с друзьями:
  • Ошибка при установке punto switcher
  • Ошибка при удалении программы не удается найти
  • Ошибка при создании контекста пользователя secret net studio
  • Ошибка при установке punkbuster
  • Ошибка при удалении параметров реестра windows 10