Fix Python DLL error by using administrative privileges
by Tashreef Shareef
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from… read more
Updated on November 10, 2022
Reviewed by
Alex Serban
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server… read more
- If you’re getting an Error loading Python DLL, make sure you’re using the right directory.
- Lack of administrative privileges can often cause this problem to appear.
XINSTALL BY CLICKING THE DOWNLOAD FILE
This tool will replace the damaged or corrupted DLLs with their functional equivalents using its dedicated repository where it has the official versions of the DLL files.
- Download and Install Fortect on your PC
- Launch the tool and Start scanning to find DLL files that could be causing PC problems
- Right-click on Start Repair to replace broken DLLs with working versions
- Fortect has been downloaded by 0 readers this month.
Python is a great programming language, but error loading Python DLL on their PC. This problem can lead to other issues, such as Python runtime error for example.
If you are also troubled by this error, here are a couple of troubleshooting tips to help you resolve this issue once and for all.
Why does the error loading Python DLL appear?
There are multiple reasons for this issue, but the following are the most common ones:
- User error – Sometimes not running the proper file or not having your script configured properly can lead to DLL errors. This can also lead to PIP not recognized and other errors.
- Lack of administrative privileges – If you don’t use administrative rights while running Python commands, sometimes you might encounter this error. You can do that by using administrator account.
- Version incompatibility – Older versions of Python aren’t always compatible with scripts made using the latest version, which results in this error.
How can I fix the error loading Python DLL?
Before we start fixing this problem, there are a couple of quick checks that you need to perform:
- Use the correct directory – Many users reported this issue because they used build instead of dist directory. Not using correct directory can lead to The specified module could not be found and other problems. To avoid this issue, always use
dist/main - Check your Python version – If you compiled your script with a newer version, older versions of Python might not be able to run it. This is especially true for Windows 7 since it doesn’t support Python 3.9 or never.
- Start the console as administrator – Before you run your script, that the command line as administrator and check if that helps.
1. Add your configuration to the Python script
- Open your Python file.
- Copy the configuration parameters to the top of the file.
- Save changes.
Many users reported that moving the configuration parameters from a separate file or the spec file, fixed the problem for them, so be sure to try it.
This solution can help you if you’re getting error loading python dll python310.dll or python39.dll anaconda message, so be sure to try it.
2. Use different parameters with pyinstaller
- Start your console.
- Now enter the following command:
pyinstaller --upx-exclude"vcruntime140.dll" myscript.py - Press Enter to run it.
Users also reported that the following commands worked for them, so feel free to try them as well: pyinstaller --onefile file_name.pypyinstaller --noupx file_name.py
This is a simple and easy solution if you’re getting error loading python DLL in pyinstaller.
3. Add Temp directory to the list of exclusions
- Press Windows key + S and enter windows security. Select Windows Security from the list.
- Go to Virus & threat protection. Next click on Manage settings.
- Click on Add or remove exclusions.
- Click on Add an exclusion and select Folder.
- Select the following directory:
C:Usersyour_usernameAppDataLocalTemp
Error loading python dll loadlibrary pyinstaller: formatmessagew failed can cause a lot of problems, but this solution might help you fix them.
- How to open PY files on a Windows 10/11 PC
- Windows can’t find Python executable error [QUICK FIX]
- What is Mdnsnsp.dll and how to Remove it
- Riched20.dll Missing: How to Fix or Download it Again
4. Delete files from pyinstaller folder
- Press Windows key + R and enter %appdata%. Press Enter.
- Navigate to pyinstaller directory.
- Delete all files from it.
This is a simple workaround and it can be helpful if you’re getting error loading Python DLL in Ultimaker Cura or AWS CLI.
The Error loading Python DLL can be problematic, but we hope you managed to solve it. If you believe that this issue is caused by a lack of permissions, our Python permission denied error guide should be able to help you.
Did you find a different solution for this problem? Let us know in the comments section below.
Newsletter
I compiled my .py file running following commands:
pyinstaller myfile.py --onefile.
When i run it on my pc(Windows 10) everything works just fine.
When i try to run it on my `virtual machine(Windows 8).
I get the following error:
Error loading Python DLL
‘C:UsersMyUsernameAppdataLocalTempNUMBERSpython36.dll’
LoadLibrary: PyInstaller: FormatMessageW failed.
I already googled the error and i found many solutions but none of them worked..
//UPDATE:
If i compile it with my virtual machine, everything runs fine on the virtual machine, main pc and even on my windows server.. strange.. so it must be a problem with my main pc.
Kind Regards
asked Jan 16, 2019 at 10:03
OperationJynxOperationJynx
1212 gold badges2 silver badges7 bronze badges
I had a similar problem trying to run a python-based program (aws cli) and getting the «Error loading Python DLL … LoadLibrary: The specified module could not be found.» on Windows Server 2008 R2.
I solved this issue by installing the Visual C++ Redistributable for Visual Studio 2015 run-time components. https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145
Hope it helps!
answered Mar 5, 2020 at 16:45
José Gil RamírezJosé Gil Ramírez
2,4811 gold badge13 silver badges7 bronze badges
You can use auto-py-to-exe instead:
python -m pip install auto-py-to-exe
And then wait for it to download and then write in then cmd (or terminal):
auto-py-to-exe
A screen will appear:
And just make as I made in the screenshot, then press «convert .py to .exe» and then press «show output folder».
Jack Deeth
3,0423 gold badges23 silver badges38 bronze badges
answered Apr 18, 2021 at 17:13
1
This also happens when you read the .exe file located in build.
You need to run the exe located in dist folder.
If the error persists even on dist folder .exe , check the exact version of python, download python dll from internet for that exact version, in keep in the folder suggested by the error message (path where this dll is missing).
answered Apr 26, 2022 at 15:38
Try to download a 32 bit version of python36.dll (or 64 if you tried 32)
That fixed the problem for me
answered Dec 4, 2022 at 16:53
The Error Loading Python DLL error typically occurs when the user tries to open the desktop version of Google Drive or several seconds after starting the syncing procedure. In most cases, the error window points towards a Dynamic Link Library (DLL) named python27.dll.
What’s causing the Error Loading Python DLL error and how to resolve it?
- Permission issue – As it turns out, it’s possible that the reason causing this particular error message is a permission issue that is preventing the syncing feature of the Backup and Sync application to communicate properly with the Drive servers. If this scenario is applicable, you should be able to fix the issue by modifying the permissions of the Temp folder in a way to ensure that every file present there can be used by the user account that you’re actively using.
- Backup and Sync version is incompatible with Windows version – Another potential cause that might lead to this scenario is a scenario in which the GoogleDriveSync.exe executable is not actually compatible with the Windows version. This might occur if you’re using an outdated Backup and Sync application. In this case, you can solve the problem by forcing the GoogleDriveSync.exe executable to run in Compatibility mode.
- Executable is missing admin access – This particular error (as well as general application instability) can also be facilitated due to the fact that the main executable doesn’t have admin access. This will prevent the Google syncing app from maintaining a persistent connection with Google Drive. To fix it, simply modify the Properties of the main executable so that it runs with admin access at every startup.
- Temp folder contains corrupted drive files – As it turns out, this interruptions during the process of syncing the local data with the Google Drive cloud might cause persistent corrupted files that will essentially break the applications. Several affected users have managed to fix the issue by cleaning the entire content of the temp folder and restarting their computer.
- Visual C++ 2008 Redist Pack is missing – In several documented cases, this issue appeared due to the fact that an essential Visual C++ pack (2008 SP1 Redist) was missing from your Windows installation. To fix the issue in this case, all you have to do is install the missing redistributable package.
- Outdated Backup and Sync version – Another potential cause that might be responsible for this particular issue is a severely outdated version of the Backup and Sync application. One potential fix is to uninstall the current version and install the latest version from the official download page.
1. Fix Permissions
As it turns out, one of the most common reasons that will trigger the Error Loading Python DLL error with the desktop version of Google Drive is a permission issue that ends up preventing the application from using certain files stored inside the temp folder.
Several affected users that found themselves in a similar situation have reported that they finally managed to fix the problem after they modified the default permissions of the Temp folder in a way that will include inheritable permissions from the object’s parent.
Here’s a quick guide on how to do this on Windows 7, Windows 8.1 and Windows 10:
- Open Windows Explorer and paste the following address in the navigation bar and hit Enter to get there instantly:
%UserProfile%AppDataLocal
- Once you are inside the Local folder, scroll down through the list of folders and locate the Temp folder.
- After you manage to locate the correct folder, right-click on it and click on Properties from the context menu.
Accessing the Properties settings of the Temp folder - Once you’re inside the Properties screen, click on the Security tab from the ribbon bar at the top.
- Inside the Security tab, click on the Advanced the button associated with special permissions.
Modifying the permissions of the temp folder - Inside the Advanced Security Settings for Temp, select each entry under Permission entries and click Remove to clear the entire Permission box.
Removing each permission entry - Once every permission entry has been deleted, check the box associated with Replace all child object permission entries with inheritable permission entries from this object. Next, click Apply to save the changes.
- Restart your computer and see if the problem was resolved after the next startup sequence is complete.
In case you’re still seeing the Error Loading Python DLL error even after doing these modifications, move down to the next potential fix below.
2. Run GoogleDriveSync.exe in Compatibility Mode
If you’re only encountering the Error Loading Python DLL error, the moment your Google Drive installation attempts to sync your files, chances are you will be able to fix the problem by forcing the executable to run in compatibility mode with Windows 7.
Most affected users are suggesting that this species occurs with Windows 10 insider builds or builds that aren’t updated with the latest security updates. In any case, the desktop version of Google Drive doesn’t receive the support that it deserves due to the relatively small user base.
Here’s a quick guide on forcing the GoogleDriveSync.exe to run in Compatibility Mode in order to fix the Error Loading Python DLL error:
- Open File Explorer and navigate to the following location to reveal the GoogleDriveSync executable:
C:Program FilesGoogleDrive
- Once you see the executable, right-click on it and choose Properties from the context menu.
- Inside the GoogleDriveSync’s properties screen, select the Compatibility tab from the ribbon bar at the top.
- After you get to the correct location, check the box associated with Run this program in compatibility mode for and select Windows 7 from the drop-down menu.
Forcing the GoogleDriveSync executable to run in compatibility mode - Click Apply to save the changes, then run double-click the executable and see if the issue is no longer occurring.
Note: If the operation was successful and you’re no longer encountering the issue, the change should be permanent. This executable is called at every startup, and you just added a compatibility layer to it.
In case the same Error Loading Python DLL error is still occurring even after enforcing this change, move down tot he next potential fix below.
3. Run executable with admin access
As it turns out, this issue can also be facilitated by the fact that the main Google Drive executable (GoogleDriveSync.exe) is not prevented to run with admin access. This will inevitably create issues and instability since the program requires a persistent connection with Google Drive.
Several affected users that encountered the same issue have confirmed that they managed to fix the issue after forcing the GoogleDriveSync.exe to run with administrator privileges.
Here’s a quick guide on forcing the desktop version of Google Drive to run with admin access:
- Open Windows File Explorer and navigate to the following location:
C:Program FilesGoogleDrive
- Once you arrive at the correct location, right-click on GoogleDriveSync.exe and click on Properties from the newly appeared context menu.
Accessing the Properties settings of the Temp folder - Inside the Properties screen of GoogleDriveSync.exe, select the Compatibility tab at the top of the window. Next, move down to the Settings menu and check the box associated with Run this program as an administrator.
Running as administrator - Click Apply to save the changes, then restart the desktop version of Google Drive and see if the problem has been resolved.
Running as administrator
If the same Error Loading Python DLL error is still occurring, move down to the next method below.
4. Clean the temp folder
This might seem like a crude solution, but we managed to find several user reports confirming that the Error Loading Python DLL error was entirely resolved after they ended up clearing the entire Temp directory.
After doing this and restarting the computer, they confirmed that Google Drive was finally allowed to start up and sync normally. This is evidence that temporary files can interfere with Google Drive’s desktop ability to run normally on Windows 10.
Here’s a quick guide clearing the temp folder on Windows 10 in order to fix the Error Loading Python DLL:
- Open File Explorer and paste the following location in the navigation bar and press Enter to get there instantly:
%UserProfile%AppDataLocal
- After you manage to get inside the correct location, scroll down through the list of items and double-click on the Temp folder once you manage to locate it.
- Once you’re inside the Temp folder, press Ctrl + A to select every item, then right-click and choose Delete to get rid of every temporary file.
Deleting the contents of the Temp folder - After the Temp folder has been cleared, restart your computer and see if the issue is resolved at the next system startup by attempting to start Google Drive once again on your Windows computer.
If the same problem is persisting, move down to the next potential fix below.
5. Install Microsoft Visual C++ 2008 SP1 Redist
As it turns out, this particular issue can occur in situations where the desktop version of Google Drive is installed on a machine that doesn’t have the redist package included with Microsoft Visual C++.
As it turns out, several dependencies included with this package are absolutely essential for the application to work. The problem is, the Google Drive installer doesn’t include it and Windows 10 doesn’t have it installed by default.
If this scenario is applicable, you can fix the issue by downloading and installing the Microsoft Visual C++ 2008 SP1 Redistributable Package. Here’s a quick guide on how to do this:
- Visit this link (here), select your language and hit Download.
Downloading the Redist pack - On the next screen, check the box associated with the system architecture that you’re using. If you’re using a 32-bit version, download vcredist_x86.exe. If you have a 64-bit version, download vcredist_x64.exe instead.
Downloading the correct vcredist installer - Wait until the download is complete, then double-click on the installation executable and follow the on-screen prompts to complete the installation.
Installing Microsoft Visual C++ Redistributable Note: If you’re prompted by the UAC (User Account Control), click Yes to grant admin access.
- Once the operation is complete, restart your computer and see if the issue is fixed.
If the same problem is persisting, move down to the final method below.
6. Install the latest Backup and Sync version
If none of the methods above have allowed you to fix the issue, it’s likely that you’re encountering the problem due to the fact that you’re using an outdated version of Google Drive’s Backup and Sync. As it turns out, this desktop version of Google Drive is notoriously known for its inability to update to the latest version.
Note: If you mistakenly deleted important files, here’s how to recover deleted files from Google drive.
If this scenario is applicable and you haven’t updated the application in a while, here’s a quick guide on uninstalling the current version and then installing the latest build available.
Note: Keep in mind that this operation will not make you lose any data. Your files are still safely tucked away on the cloud.
Here’s what you need to update to the latest Backup and Sync version:
- Press Windows key + R to open up a Run dialog box. Next, type “appwiz.cpl” and press Enter to open up the Programs and Features menu.
Opening Programs and Features - Once you’re inside the Programs and Features menu, scroll down through the list of installed applications and locate the Backup and Sync from Google application.
- When you see it, right-click on it and choose Uninstall from the newly appeared context menu.
Uninstalling the old version of Backup and Sync from Google - Next, click Yes at the confirmation prompt to begin the uninstallation process. Once the operation is complete, restart your computer to flush out the remaining temp files related to this application.
- Once the next startup sequence is complete, open your default browser and access this link (here).
Downloading the newest version of Google Backup and Sync for Windows - Once the download is complete, open the installation executable and follow the prompts to complete the installation before doing another system restart.
- After the next startup sequence, retry the operation that was previously causing the Error Loading Python DLL error and see if the problem is now sorted out.
Kevin Arrows
Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Ошибка загрузки Python DLL обычно возникает, когда пользователь пытается открыть настольную версию Google Drive или через несколько секунд после запуска процедуры синхронизации. В большинстве случаев окно ошибки указывает на динамическую библиотеку (DLL) с именем python27.dll.
Ошибка загрузки Python DLL
Что является причиной ошибки Ошибка загрузки Python DLL и как ее устранить?
- Проблема с разрешениями. Как выясняется, причиной этого конкретного сообщения об ошибке может быть проблема с правами доступа, которая не позволяет функции синхронизации приложения Backup and Sync должным образом обмениваться данными с серверами накопителей. Если этот сценарий применим, вы сможете исправить проблему, изменив разрешения для папки Temp таким образом, чтобы гарантировать, что каждый присутствующий файл может использоваться учетной записью пользователя, которую вы активно используете.
- Версия Backup and Sync несовместима с версией Windows. Другой потенциальной причиной, которая может привести к этому сценарию, является сценарий, в котором исполняемый файл GoogleDriveSync.exe фактически не совместим с версией Windows. Это может произойти, если вы используете устаревшее приложение резервного копирования и синхронизации. В этом случае вы можете решить проблему, принудительно запустив исполняемый файл GoogleDriveSync.exe в режиме совместимости.
- Для исполняемого файла отсутствует административный доступ. Эту конкретную ошибку (а также общую нестабильность приложения) также можно упростить из-за того, что основной исполняемый файл не имеет административного доступа. Это не позволит приложению синхронизации Google поддерживать постоянное соединение с Google Диском. Чтобы исправить это, просто измените Свойства основного исполняемого файла, чтобы он запускался с правами администратора при каждом запуске.
- Временная папка содержит поврежденные файлы на диске. Как оказалось, эти прерывания в процессе синхронизации локальных данных с облаком Google Диск могут привести к постоянным поврежденным файлам, которые по существу повредят приложения. Нескольким затронутым пользователям удалось устранить проблему, очистив все содержимое временной папки и перезагрузив компьютер.
- Visual C ++ 2008 Redist Pack отсутствует — в нескольких задокументированных случаях эта проблема возникала из-за того, что в вашей установке Windows отсутствовал необходимый пакет Visual C ++ (Redist 2008 SP1). Чтобы устранить проблему в этом случае, все, что вам нужно сделать, это установить отсутствующий распространяемый пакет.
- Устаревшая версия Backup and Sync. Другой потенциальной причиной, которая может быть причиной этой конкретной проблемы, является сильно устаревшая версия приложения Backup and Sync. Одним из возможных исправлений является удаление текущей версии и установка последней версии с официальной страницы загрузки.
1. Исправить разрешения
Как выясняется, одной из наиболее распространенных причин, вызывающих ошибку «Ошибка загрузки Python DLL» в версии Google Drive для настольных компьютеров, является проблема с правами доступа, которая в итоге не позволяет приложению использовать определенные файлы, хранящиеся во временной папке.
Несколько затронутых пользователей, оказавшихся в аналогичной ситуации, сообщили, что им наконец удалось исправить проблему после того, как они изменили разрешения по умолчанию для папки Temp таким образом, что будут включать наследуемые разрешения от родительского объекта.
Вот краткое руководство о том, как это сделать в Windows 7, Windows 8.1 и Windows 10:
- Откройте проводник Windows, вставьте следующий адрес в панель навигации и нажмите клавишу «Ввод», чтобы мгновенно туда попасть:% UserProfile% AppData Local
- Как только вы окажетесь в папке Local, прокрутите список папок вниз и найдите папку Temp.
- После того, как вам удастся найти нужную папку, щелкните ее правой кнопкой мыши и выберите «Свойства» в контекстном меню.
Доступ к настройкам свойств папки Temp
- Как только вы окажетесь на экране «Свойства», перейдите на вкладку «Безопасность» на панели ленты в верхней части.
- На вкладке «Безопасность» нажмите кнопку «Дополнительно», связанную со специальными разрешениями.
Изменение разрешений для временной папки
- В разделе «Дополнительные параметры безопасности для Temp» выберите каждую запись в разделе «Полномочия» и нажмите «Удалить», чтобы очистить поле «Полное разрешение».
Удаление каждой записи разрешения
- После удаления каждой записи разрешения установите флажок, связанный с Заменить все записи разрешений дочернего объекта на наследуемые записи разрешений этого объекта. Далее нажмите «Применить», чтобы сохранить изменения.
- Перезагрузите компьютер и посмотрите, была ли проблема решена после завершения следующей последовательности запуска.
Если вы все еще видите ошибку Ошибка загрузки Python DLL даже после внесения этих изменений, перейдите к следующему потенциальному исправлению ниже.
2. Запустите GoogleDriveSync.exe в режиме совместимости.
Если вы сталкиваетесь только с ошибкой Ошибка загрузки Python DLL, в тот момент, когда ваша установка Google Drive пытается синхронизировать ваши файлы, скорее всего, вы сможете решить эту проблему, заставив исполняемый файл работать в режиме совместимости с Windows 7.
Большинство затронутых пользователей предполагают, что этот вид встречается в инсайдерских сборках или сборках Windows 10, которые не обновлены последними обновлениями безопасности. В любом случае, версия Google Drive для ПК не получает поддержки, которую она заслуживает, из-за относительно небольшой базы пользователей.
Вот краткое руководство по принудительному запуску GoogleDriveSync.exe в режиме совместимости для исправления ошибки Ошибка загрузки Python DLL:
- Откройте проводник и перейдите в следующую папку, чтобы открыть исполняемый файл GoogleDriveSync: C: Program Files Google Drive
- Когда вы увидите исполняемый файл, щелкните его правой кнопкой мыши и выберите «Свойства» в контекстном меню.
- На экране свойств GoogleDriveSync выберите вкладку «Совместимость» на панели ленты в верхней части.
- После того, как вы попадете в правильное местоположение, установите флажок «Запустить эту программу в режиме совместимости для» и выберите Windows 7 в раскрывающемся меню.
Принудительный запуск исполняемого файла GoogleDriveSync в режиме совместимости
- Нажмите «Применить», чтобы сохранить изменения, затем дважды щелкните исполняемый файл и посмотрите, не возникает ли проблема.
Примечание. Если операция прошла успешно и проблема больше не возникает, изменение должно быть постоянным. Этот исполняемый файл вызывается при каждом запуске, и вы просто добавили к нему слой совместимости.
Если такая же ошибка загрузки Python DLL все еще происходит, даже после применения этого изменения, перейдите к следующему потенциальному исправлению ниже.
3. Запустите исполняемый файл с правами администратора.
Как оказалось, эта проблема также может быть облегчена тем фактом, что основной исполняемый файл Google Drive (GoogleDriveSync.exe) не мешает запускаться с правами администратора. Это неизбежно приведет к проблемам и нестабильности, поскольку программе требуется постоянное соединение с Google Drive.
Несколько затронутых пользователей, столкнувшихся с той же проблемой, подтвердили, что им удалось решить эту проблему после принудительного запуска GoogleDriveSync.exe с правами администратора.
Вот краткое руководство по запуску версии Google Drive для настольных компьютеров с правами администратора:
- Откройте проводник Windows и перейдите в следующую папку: C: Program Files Google Drive
- Как только вы приедете в правильное местоположение, щелкните правой кнопкой мыши GoogleDriveSync.exe и выберите Свойства в появившемся контекстном меню.
Доступ к настройкам свойств папки Temp
- На экране свойств GoogleDriveSync.exe выберите вкладку «Совместимость» в верхней части окна. Затем перейдите в меню «Настройки» и установите флажок «Запустить эту программу от имени администратора».
Запуск от имени администратора
- Нажмите «Применить», чтобы сохранить изменения, затем перезапустите версию Google Диска для ПК и посмотрите, была ли проблема решена.
Запуск от имени администратора
Если та же ошибка Ошибка загрузки Python DLL все еще происходит, перейдите к следующему способу ниже.
4. Очистите временную папку
Это может показаться грубым решением, но нам удалось найти несколько пользовательских отчетов, подтверждающих, что ошибка Ошибка загрузки Python DLL была полностью устранена после того, как они в итоге очистили весь каталог Temp.
Сделав это и перезагрузив компьютер, они подтвердили, что Google Диску наконец разрешено запускаться и синхронизироваться нормально. Это свидетельствует о том, что временные файлы могут мешать нормальной работе рабочего стола Google Диска в Windows 10.
Вот краткое руководство по очистке временной папки в Windows 10 для исправления ошибки загрузки Python DLL:
- Откройте проводник, вставьте следующее местоположение в панель навигации и нажмите клавишу «Ввод», чтобы мгновенно туда попасть:% UserProfile% AppData Local
- После того, как вам удастся попасть внутрь нужного места, прокрутите вниз список элементов и дважды щелкните папку Temp, как только вам удастся найти ее.
- Как только вы окажетесь в папке Temp, нажмите Ctrl + A, чтобы выбрать каждый элемент, затем щелкните правой кнопкой мыши и выберите «Удалить», чтобы избавиться от каждого временного файла.
Удаление содержимого папки Temp
- После очистки папки Temp перезагрузите компьютер и проверьте, решена ли проблема при следующем запуске системы, попытавшись еще раз запустить Google Диск на компьютере Windows.
Если та же проблема сохраняется, перейдите к следующему потенциальному решению ниже.
5. Установите Microsoft Visual C ++ 2008 SP1 Redist
Как выясняется, эта конкретная проблема может возникать в ситуациях, когда версия Google Drive для настольного компьютера установлена на компьютере, на котором нет пакета для перенаправления, включенного в Microsoft Visual C ++.
Как оказалось, несколько зависимостей, включенных в этот пакет, абсолютно необходимы для работы приложения. Проблема в том, что установщик Google Диска не включает его, а Windows 10 не устанавливает его по умолчанию.
Если этот сценарий применим, вы можете решить эту проблему, загрузив и установив распространяемый пакет Microsoft Visual C ++ 2008 SP1. Вот краткое руководство о том, как это сделать:
- Посетите эту ссылку (Вот), выберите свой язык и нажмите Download.
Загрузка пакета Redist
- На следующем экране установите флажок, связанный с используемой вами архитектурой системы. Если вы используете 32-разрядную версию, загрузите vcredist_x86.exe. Если у вас 64-битная версия, скачайте vcredist_x64.exe.
Загрузка правильного установщика vcredist
- Дождитесь завершения загрузки, затем дважды щелкните исполняемый файл установки и следуйте инструкциям на экране для завершения установки.
Установка распространяемого Microsoft Visual C ++
Примечание. Если вас попросит UAC (Контроль учетных записей), нажмите Да, чтобы предоставить доступ администратора.
- После завершения операции перезагрузите компьютер и посмотрите, устранена ли проблема.
Если проблема сохраняется, перейдите к последнему методу ниже.
6. Установите последнюю версию Backup and Sync
Если ни один из описанных выше способов не позволил вам устранить проблему, скорее всего, вы столкнулись с проблемой из-за того, что вы используете устаревшую версию Google Drive Backup and Sync. Как оказалось, эта версия Google Drive для ПК известна своей неспособностью обновиться до последней версии.
Примечание. Если вы по ошибке удалили важные файлы, вот как восстановить удаленные файлы с диска Google.
Если этот сценарий применим, и вы не обновляли приложение в течение некоторого времени, вот краткое руководство по удалению текущей версии и установке последней доступной сборки.
Примечание. Помните, что эта операция не приведет к потере данных. Ваши файлы все еще надежно спрятаны в облаке.
Вот что вам нужно обновить до последней версии Backup and Sync:
- Нажмите клавишу Windows + R, чтобы открыть диалоговое окно «Выполнить». Затем введите «appwiz.cpl» и нажмите Enter, чтобы открыть меню «Программы и компоненты».
Открытие программ и функций
- Как только вы окажетесь в меню «Программы и компоненты», прокрутите список установленных приложений и найдите «Резервное копирование и синхронизация» из приложения Google.
- Когда вы увидите его, щелкните его правой кнопкой мыши и выберите «Удалить» из появившегося контекстного меню.
Удаление старой версии Backup and Sync из Google
- Затем нажмите кнопку «Да» в окне подтверждения, чтобы начать процесс удаления. После завершения операции перезагрузите компьютер, чтобы удалить оставшиеся временные файлы, связанные с этим приложением.
- После завершения следующей последовательности запуска откройте браузер по умолчанию и перейдите по этой ссылке (Вот).
Загрузка новейшей версии Google Backup и Sync для Windows
- После завершения загрузки откройте исполняемый файл установки и следуйте инструкциям, чтобы завершить установку перед перезагрузкой другой системы.
- После следующей последовательности запуска повторите операцию, которая ранее вызывала ошибку Ошибка загрузки Python DLL, и посмотрите, устранена ли проблема.
-
MiniTool
-
MiniTool News Center
- Google Drive Error Code 5 – Error Loading Python DLL
By Sarah | Follow |
Last Updated July 01, 2021
You can’t deny the fact that Google Drive is used widely throughout the world. You also need to admit that there are sometimes errors occurred in Google Drive. For instance, the Error Loading Python DLL error (error code 5) shows up on your device, all of a sudden.
Please back up at least important data with MiniTool software.
Google Drive Error: Error loading Python DLL
What is Google Drive?
Google LLC designed and released Google Drive as a file storage and synchronization service on April 24, 2012. Three main functions of Google Drive are storing files on servers, synchronizing files across devices, and sharing files with others. Google Drive also provides applications equipped with offline capabilities for users of multiple devices (Windows and macOS computers, Android and iOS smartphones, and tablets).
Google Drive Error 5
Like any other programs and services, the Google Drive also suffers from various errors. For instance, Error loading Python DLL is a typical Google Drive fatal error people may encounter.
Fatal Error!
C:UsersUserAppDataLocalTemp_MEI22042python27.dll (error code 5)
The prompt window above shows up when:
- Google Drive app cannot start.
- Users initialize the syncing procedure.
When you see such Google Drive fatal error, you have no choice but to click on the OK button to close the prompt window. However, this error persists. Please read the following content to know what can cause the error and how to fix it.
What Is Fatal System Error & How Do You Fix It On Windows?
What Causes Google Drive Error Loading Python DLL
The Error Loading Python DLL error usually shows up on your screen when you try to open the desktop version of Google Drive or several seconds after the syncing procedure was started. Most of the time, the Error Loading Python DLL prompt window shows you that a DLL named python27.dll is in trouble.
Why does the error loading Python DLL appears in Google Drive? There are mainly 6 reasons to explain why you can’t open Google Drive.
- The executable is losing admin access: the error loading python27.dll may be a result of lack of admin access. Thus, the Google syncing app cannot maintain a persistent connection with Google Drive.
- Lack Visual C++ 2008 Redist Pack: if an essential Visual C++ pack (2008 SP1 Redist) is not included in the Windows installation, the python27.dll loading error will also appear.
- There’s problem with permission: you can’t use the syncing feature of the Backup and Sync application to communicate with the Drive servers correctly if any permission problem is found.
- There’s compatibility issue: if the GoogleDriveSync.exe executable (Backup and Sync version) is not compatible with your current Windows version, the error will also occur.
- GoogleDriveSync.exe executable is outdated: people running a severely outdated version of the Backup and Sync application tend to receive the error loading Python DLL message.
- Corrupted drive files are found in Temp folder: the files contained in Temp folder may be corrupted when you sync the local data with the Google Drive cloud.
How to recover corrupted files?
How to Solve Error Loading Python DLL on Windows
#1. Run the executable file (GoogleDriveSync.exe) with admin access.
- Open Windows Explorer (also called File Explorer).
- Go to this path: C:Program FilesGoogleDrive.
- Look for theexe file and right click on it.
- Choose Properties from the menu you see.
- Shift to the Compatibility tab in the Properties window.
- Look for the Settings section and check Run this program as an administrator under it.
- Click on the Apply button to confirm.
- Restart your Google Drive to have a try.
#2. Install the latest Microsoft Visual C++ 2008 SP1 Redist.
- Click here to select language and then click on the Download button.
- Check a version based on your system (vcredist_x86.exe for 32-bit version and vcredist_x64.exe for 64-bit).
- Wait for the download process to complete.
- Follow the instructions to complete installing the Redist Pack.
- Restart your computer.
#3. Get the latest Backup and Sync version.
- Right click on the Start button in the lower left corner.
- Choose Run from the menu and type appwiz.cpl.
- Hit Enter to open the Programs and Features window.
- Look for Backup and Sync from Google application and select it.
- Click on the Uninstall button and click Yes to confirm.
- Wait for the uninstallation process to end.
- Open the browser on your computer and go to this page.
- Follow the instructions to finish the installation.
- Restart your computer.
Also, you can troubleshoot error loading Python DLL by:
- Changing the permissions of Temp folder
- Cleaning the temp folder
- Running GoogleDriveSync.exe in compatibility mode
How To Delete WindowsApps Folder & Get Permission?
About The Author
Position: Columnist
Sarah has been working as an editor at MiniTool since she graduated from university. Sarah aims at helping users with their computer problems such as disk errors and data loss. She feels a sense of accomplishment to see that users get their issues fixed relying on her articles. Besides, she likes to make friends and listen to music after work.




























