Требуется ошибка visual studio

This repo is the home of the official Visual Studio, Visual Studio for Mac, Visual Studio Subscriptions, and Scripting Technologies documentation for Microsoft. - visualstudio-docs/troubleshooting-...
title description ms.date ms.custom ms.topic helpviewer_keywords ms.assetid author ms.author manager ms.workload ms.prod ms.technology

Troubleshoot installation or upgrades

Sometimes, things can go wrong. If your Visual Studio installation or upgrade fails, this page can help.

1/6/2023

vs-acquisition

troubleshooting

{{PLACEHOLDER}}

{{PLACEHOLDER}}

556EDD3F-E365-43EE-B3DD-03AA4353F75B

anandmeg

meghaanand

jmartens

multiple

visual-studio-windows

vs-installation

Troubleshoot Visual Studio installation and upgrades

[!INCLUDE Visual Studio]

[!TIP]
Having a problem installing? We can help. We offer an installation chat (English only) support option.

This troubleshooting guide includes step-by-step instructions that should resolve most installation issues.

Online installations / updates

The following possible resolutions apply to a typical online installation. Try them in order.

1. Check whether the problem is a known issue

The first thing to check is whether or not the issue you are encountering is a known issue with the Visual Studio Installer that Microsoft is working on fixing.

::: moniker range=»vs-2019″

To see if there’s a workaround for your problem, check the Known Issues section of our release notes.

::: moniker-end

::: moniker range=»>=vs-2022″

To see if there’s a workaround for your problem, check the Known Issues section of our release notes.

::: moniker-end

2. Try repairing Visual Studio

Next, try to repair your installation. This solution fixes many common update issues. To learn how to repair, see Repair Visual Studio.

3. See what the developer community says about the error.

If repairing didn’t fix the issue, search for your error message in the Visual Studio Developer Community. Other members of the community might have found a solution or workaround to your problem.

4. Delete the installer folder (update issues)

If you encountered an issue when updating, try deleting the Visual Studio Installer folder, and then rerunning the installation bootstrapper can solve certain update failures. Doing so reinstalls the Visual Studio Installer files and resets the installation metadata.

::: moniker range=»<vs-2022″

  1. Close the Visual Studio Installer.
  2. Delete the Visual Studio Installer installation directory. Typically, the directory is C:Program Files (x86)Microsoft Visual StudioInstaller.
  3. Run the Visual Studio bootstrapper. The Visual Studio bootstrapper is a light-weight executable that initiates the install of the Visual Studio Installer and then the Visual Studio product itself. You might find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don’t find that application, you can download the bootstrapper by going to the Visual Studio older downloads page and clicking Download for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
  4. Try to install or update Visual Studio again. If the Installer continues to fail, proceed to the Report a problem step.

::: moniker-end

::: moniker range=»=vs-2022″

  1. Close the Visual Studio Installer.
  2. Delete the Visual Studio Installer folder. Typically, the folder path is C:Program Files (x86)Microsoft Visual StudioInstaller.
  3. Run the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that matches a vs_[Visual Studio edition]__*.exe pattern. Or, you can download the bootstrapper for your edition of Visual Studio from the Visual Studio downloads page. Then, run the executable to reset your installation metadata.
  4. Try to install or update Visual Studio again. If the Visual Studio Installer continues to fail, proceed to the Report a problem step.

::: moniker-end

5. Report the problem to support

In some situations, such as when there are corrupted files, issues might require case-by-case troubleshooting. To help us help you, follow these steps:

::: moniker range=»vs-2019″

  1. Collect your setup logs. See How to get the Visual Studio installation logs for details.
  2. Open the Visual Studio Installer, and then click Report a problem to open the Visual Studio Feedback tool.
    Screenshot showing the Provide feedback button in the Visual Studio Installer.
  3. Give your problem report a title, and provide relevant details. Click Next to go to the Attachments section, and then attach the generated log file (typically, the file is at %TEMP%vslogs.zip).
  4. Click Next to review your problem report, and then click Submit.

::: moniker-end

::: moniker range=»>=vs-2022″

  1. Collect your setup logs. See How to get the Visual Studio installation logs for details.
  2. Open the Visual Studio Installer, and then choose Report a problem to open the Visual Studio Feedback tool.
    Screenshot showing the Provide feedback button in the Visual Studio Installer.
  3. Give your problem report a title, and provide the relevant details. The most recent setup log for the Visual Studio Installer is automatically added to the Additional attachments section of your problem report.
  4. Choose Submit.

::: moniker-end

6. Remove all Visual Studio installation files

As a last resort, you can remove all Visual Studio installation files and product information:

  1. Follow the steps in this article: Remove Visual Studio page.
  2. Rerun the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that matches a vs_[Visual Studio edition]__*.exe pattern. Or, you can download the bootstrapper for your edition of Visual Studio from the Visual Studio downloads page.
  3. Try to reinstall Visual Studio.

::: moniker range=»>=vs-2022″

7. Rollback to a previous install

[!IMPORTANT]
Before you try to rollback, learn more about the rollback feature in Visual Studio.

Rollback may be disabled or your rollback attempt may be undone if you’re in an organization that has security compliance or software updating requirements. Contact your IT Administrator for further details.

If none of the previous steps helped you successfully upgrade Visual Studio, you can try to rollback to your previously installed version. Since Visual Studio 2022 version 17.4, you can rollback to your previously installed version if:

  • You haven’t installed from a layout.
  • Your original version was on the Current channel version 17.1.7 or higher, or on the 17.0 Fall 2021 LTSC channel 17.0.10 or higher.

You can rollback to your previously installed version by using the Visual Studio Installer or by using the command line.

To rollback using the Visual Studio Installer:

  1. Launch the Visual Studio Installer on your computer.
  2. In the installer, look for the edition of Visual Studio that you installed.
  3. Choose More.
  4. Choose Rollback to previous version.
    :::image type=»content» source=»media/vs-2022/rollback-from-previous-version.png» alt-text=»Screenshot of the Rollback to previous version option.»:::
  5. Select OK to confirm your choice.

8. Contact our live chat

If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our live chat support option (English only) for further assistance.

::: moniker-end

::: moniker range=»vs-2019″

7. Contact our live chat

If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our live chat support option (English only) for further assistance.

::: moniker-end

Network layout or offline installations

To resolve issues with a network installation, see Error Codes or Troubleshoot network-related errors when you install or use Visual Studio.

Administrator Updates

Administrator updates may not be applied correctly due to a variety of situations. Refer to the Administrator updates troubleshooting error codes for further information.

Collect installation logs for Microsoft Support

If you contact Microsoft Support, you might be asked to collect setup logs by using the Microsoft Visual Studio and .NET Framework log collection tool. The log collection tool collects setup logs from all components installed by Visual Studio, including .NET Framework, Windows SDK, and SQL Server. It also collects computer information, a Windows Installer inventory, and Windows event log information for the Visual Studio Installer, Windows Installer, and System Restore.

To collect the logs:

  1. Download the tool.

  2. Open an administrative command prompt.

  3. Run Collect.exe in the folder where you saved the tool.

    The tool must be run under the same user account that the failed installation was run under. If you are running the tool from a different user account, set the –user:<name> option to specify the user account under which the failed installation was run. Run Collect.exe -? from an administrator command prompt for additional options and usage information.

The tool generates a vslogs.zip file in your %TEMP% folder, typically at C:UsersYourNameAppDataLocalTempvslogs.zip.

Problems installing WebView2

If your organization’s Group policies block the installation of the WebView2 component, you won’t be able to install Visual Studio since the installer requires WebView2 to be installed. If this happens, check these policies:

  • If the Microsoft Edge ‘Install (WebView)’ is configured, it determines whether WebView2 can be installed.
  • If the Microsoft Edge ‘Install (WebView)’ policy is not configured, the Microsoft Edge ‘InstallDefault’ policy determines whether WebView2 can be installed.

[!Warning]
If neither policy is configured, WebView2 installation is allowed by your organization.

I’m trying .NET Core today inside Visual Studio 2017.
However, it seems I’m unable to debug the application even with barebone Hello World project.

Every time I try to start the project, the following message box appear:

Error Message

I’ve searched similar issue and come across this thread:
Unable to start debugging. The startup project could not be launched. VS2015

I tried every single answer there and nothing worked in my end.
Is there something I missed?

Thanks in advance

asked Sep 14, 2017 at 4:23

5

I had the same problem (Visual Studio 17.3 and 17.4). I was able to solve today.
It turned out that the cause was an extension. After deactivating this extension I was able to debug again.

Edit:
In my case it was the «Arduino GDB for Visual Micro 2017».

Community's user avatar

answered Oct 16, 2017 at 12:35

jmrtns's user avatar

2

I close VS2015 and restart, the problem is solved.

answered May 16, 2020 at 12:48

yu yang Jian's user avatar

yu yang Jianyu yang Jian

6,4147 gold badges53 silver badges78 bronze badges

1

After experiencing the error dialog in the original question and I followed the suggestions provided here and on similar SO topics, with no success. Thinking my project was the problem I created a brand new, «Hello World» .NET Core console application.

I could not start the debugger from this brand new project as well. I decided this was a problem beyond my project or solution files. So I decided to repair my Visual Studio 2017 installation, I was running VS 2017 15.5.1.

To repair VS 2017… start Visual Studio Installer, under the Installed sectionVisual Studio Professional (my edition is Professional), look for the More [down arrow] option to the right of [Modify] and [Launch], from the More drop-down choose Repair.

This took quite some time (I left for a couple hours), but upon return both the new Hello World and my NETCore application would launch in the debugger.

answered Dec 12, 2017 at 15:47

Greg Terrell's user avatar

Greg TerrellGreg Terrell

1,15213 silver badges17 bronze badges

I had the same problem with Visual Studio 2019. I had to disable Azure IoT Edge Tools for VS 2019 extension from Visual Studio. After that, I just restarted Visual Studio and it allowed debugging.

enter image description here

answered Apr 24, 2020 at 14:43

Ankush Jain's user avatar

Ankush JainAnkush Jain

4,8414 gold badges29 silver badges51 bronze badges

1

If you came here looking for a fix due to converting from .NET Framework to .NET Core the problem is your Solution file.

Do this, make a new project with the same name. Copy the .sln file and replace yours. Open the solution and the problem should be fixed.

The first two lines for one made in Visual Studio 2019 are:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16

If your using an old one you might have something like so:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

Might just be able to change the format, I haven’t tested that, but in my case those were the only differences as well as:

VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1

answered Oct 22, 2020 at 15:29

Kelly's user avatar

KellyKelly

6,88212 gold badges58 silver badges76 bronze badges

1

Under your solution (not project), there should be a file called global.json with content like this:

"sdk": {
   "version": "1.0.0-blah-blah"
}

Go to the command line and run: dotnet --version. This will give you the default dotnet version. Replace «version» value with that, save the solution, restart Visual Studio and give it a shot again.

answered Sep 14, 2017 at 4:37

AngryHacker's user avatar

AngryHackerAngryHacker

58.4k100 gold badges312 silver badges575 bronze badges

4

For me the project were located in another project. After carrying it in another location the problem was gone!

answered Apr 29, 2021 at 5:33

Azizjan Hamidovich Ayupov's user avatar

I’m trying .NET Core today inside Visual Studio 2017.
However, it seems I’m unable to debug the application even with barebone Hello World project.

Every time I try to start the project, the following message box appear:

Error Message

I’ve searched similar issue and come across this thread:
Unable to start debugging. The startup project could not be launched. VS2015

I tried every single answer there and nothing worked in my end.
Is there something I missed?

Thanks in advance

asked Sep 14, 2017 at 4:23

5

I had the same problem (Visual Studio 17.3 and 17.4). I was able to solve today.
It turned out that the cause was an extension. After deactivating this extension I was able to debug again.

Edit:
In my case it was the «Arduino GDB for Visual Micro 2017».

Community's user avatar

answered Oct 16, 2017 at 12:35

jmrtns's user avatar

2

I close VS2015 and restart, the problem is solved.

answered May 16, 2020 at 12:48

yu yang Jian's user avatar

yu yang Jianyu yang Jian

6,4147 gold badges53 silver badges78 bronze badges

1

After experiencing the error dialog in the original question and I followed the suggestions provided here and on similar SO topics, with no success. Thinking my project was the problem I created a brand new, «Hello World» .NET Core console application.

I could not start the debugger from this brand new project as well. I decided this was a problem beyond my project or solution files. So I decided to repair my Visual Studio 2017 installation, I was running VS 2017 15.5.1.

To repair VS 2017… start Visual Studio Installer, under the Installed sectionVisual Studio Professional (my edition is Professional), look for the More [down arrow] option to the right of [Modify] and [Launch], from the More drop-down choose Repair.

This took quite some time (I left for a couple hours), but upon return both the new Hello World and my NETCore application would launch in the debugger.

answered Dec 12, 2017 at 15:47

Greg Terrell's user avatar

Greg TerrellGreg Terrell

1,15213 silver badges17 bronze badges

I had the same problem with Visual Studio 2019. I had to disable Azure IoT Edge Tools for VS 2019 extension from Visual Studio. After that, I just restarted Visual Studio and it allowed debugging.

enter image description here

answered Apr 24, 2020 at 14:43

Ankush Jain's user avatar

Ankush JainAnkush Jain

4,8414 gold badges29 silver badges51 bronze badges

1

If you came here looking for a fix due to converting from .NET Framework to .NET Core the problem is your Solution file.

Do this, make a new project with the same name. Copy the .sln file and replace yours. Open the solution and the problem should be fixed.

The first two lines for one made in Visual Studio 2019 are:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16

If your using an old one you might have something like so:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

Might just be able to change the format, I haven’t tested that, but in my case those were the only differences as well as:

VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1

answered Oct 22, 2020 at 15:29

Kelly's user avatar

KellyKelly

6,88212 gold badges58 silver badges76 bronze badges

1

Under your solution (not project), there should be a file called global.json with content like this:

"sdk": {
   "version": "1.0.0-blah-blah"
}

Go to the command line and run: dotnet --version. This will give you the default dotnet version. Replace «version» value with that, save the solution, restart Visual Studio and give it a shot again.

answered Sep 14, 2017 at 4:37

AngryHacker's user avatar

AngryHackerAngryHacker

58.4k100 gold badges312 silver badges575 bronze badges

4

For me the project were located in another project. After carrying it in another location the problem was gone!

answered Apr 29, 2021 at 5:33

Azizjan Hamidovich Ayupov's user avatar

I am getting an «Unknown Error» (shown below) alert when I try to launch Visual Studio 2017 Community after successful installation.

enter image description here

UPDATE: After Force uninstall & reinstallation

enter image description here

Wai Ha Lee's user avatar

Wai Ha Lee

8,41977 gold badges60 silver badges90 bronze badges

asked Mar 10, 2017 at 11:47

Ajay Jadhav's user avatar

10

remove this folder (or similar):

%LocalAppData%MicrosoftVisualStudio15.0_db2a872f

  • folder name 15.0_db2a872f could be different in your machine eg. 15.0_XXXXXXX
  • found in the vs startup log that processing of Progression_NativePackage_Component_x86.pkgdef bailed out, indicating an inconsistent extension installation

Sreekumar P's user avatar

Sreekumar P

5,82211 gold badges57 silver badges81 bronze badges

answered Mar 14, 2017 at 15:12

niclar's user avatar

niclarniclar

9526 silver badges2 bronze badges

7

I only had to rename(if you wan’t to back it up)/delete the following file:

privateregistry.bin

or

privateregistry.user.bin

depending on Visual Studio version.

%LocalAppData%MicrosoftVisualStudio15.0_********privateregistry.bin

%LocalAppData%MicrosoftVisualStudio15.0_********privateregistry.user.bin

After restarting Visual Studio 2017 you may need to activate Tools or Extensions again.

Community's user avatar

answered Mar 26, 2017 at 13:54

Bruno Bieri's user avatar

Bruno BieriBruno Bieri

9,55311 gold badges61 silver badges89 bronze badges

7

Please check if the machine has Symantec Workspace Virtualization Agent installed. Removing the product from addremove programs fixed the unknown error while launching VS 2017.

Here is the detail of the product.
Product code: {785F9A4D-D113-43B3-AA1D-77AD777F0A2F}
Package code: {32DB9767-3EF7-465A-ADF2-7ECFD25ABC12}
Install date: 2015.05.21
Version: 6.4.1266
Publisher: Symantec

answered Mar 23, 2017 at 15:22

rathish rk's user avatar

rathish rkrathish rk

4144 silver badges8 bronze badges

I ran it as Admin and it somehow booted up just fine after that. I was getting the same error even after making sure that all packages and SDKs were installed until I ran it as admin.

Basically, just go to the shortcut in Start or to the .exe in the files, then right click it and run as Admin or change it in the properties. Tbh, it seems like a temporary fix and I’d actually like to know the real source of the problem, but for now, I don’t have to reinstall and repair over and over.

Same version: Visual Studio Community 2017 installed using the launcher

answered Mar 13, 2017 at 13:11

Sorral's user avatar

3

I have a same problem after update VS 2017 Enterprise to the build 26228.9.

Repair installation doesn’t fix anything. Still I got «Unknown error» message immediately after start VS2017.

Fixing is possible by removing this folder:

"C:UsersUSER_NAMEAppDataLocalMicrosoftVisualStudio15.0_xxxxxxx"

where xxxxxxxx is some hexadecimal number.

BUT AFTER THAT YOU LOSE ALL SETTINGS that you done on your installation of VS 2017 (except product license key appliance).

Sorry that I must say this, but:

Maybe will be better stuck on the VS2015 for now. Because MS still not has really fully functional build of VS for now.

VS 2017 is still ready for first experimenting only and not for real work.

It is same story like a was when VS2015 has been published. (after several days stop working).

Neil's user avatar

Neil

14k3 gold badges28 silver badges50 bronze badges

answered Mar 16, 2017 at 14:33

Poke's user avatar

0

I fixed it the same way as niclar by deleting folder 15_.*. It does however appear that renaming privateregistry.bin has same effect with less trouble.

As mentioned by Torbjorn, ReSharper and other Extensions can mess up, however no reinstall required.

Merely go to Tools > Extensions and Updates… > Scroll through list of Installed Extensions > Enable those that should be enabled.

answered Apr 11, 2017 at 7:21

Emil L.'s user avatar

I have a side by side installation with VS2015. After opening and closing VS2015 once, VS2017 ist starting again normally. Strange but helped in my case.

answered May 15, 2017 at 8:17

martinoss's user avatar

martinossmartinoss

5,0482 gold badges45 silver badges50 bronze badges

I only needed to delete or rename ApplicationPrivateSettings.lock within C:users{your username}AppDataLocalMicrosoftVisualStudio15.0_c31ecfb9 folder.

answered Jun 8, 2017 at 16:56

Nick Painter's user avatar

I was experiencing this issue with Visual Studio Professional
when not running as administrator. (It worked Ok as administrator)
I used Niclar’s solution of deleting the folders.

answered Jul 17, 2017 at 21:14

Kirsten's user avatar

KirstenKirsten

14.3k38 gold badges166 silver badges295 bronze badges

I found same issue after installing the extension and removing the folder «C:UsersUSER_NAMEAppDataLocalMicrosoftVisualStudio15.0_xxxxxxx» solved my problem.

answered Sep 2, 2019 at 5:19

Roh8Stha's user avatar

1

you can rename the Solution Name and reopen the Project it solved for me after repairing the VS Installation

answered May 20, 2020 at 22:44

Mohamed Farrag's user avatar

I am getting an «Unknown Error» (shown below) alert when I try to launch Visual Studio 2017 Community after successful installation.

enter image description here

UPDATE: After Force uninstall & reinstallation

enter image description here

Wai Ha Lee's user avatar

Wai Ha Lee

8,41977 gold badges60 silver badges90 bronze badges

asked Mar 10, 2017 at 11:47

Ajay Jadhav's user avatar

10

remove this folder (or similar):

%LocalAppData%MicrosoftVisualStudio15.0_db2a872f

  • folder name 15.0_db2a872f could be different in your machine eg. 15.0_XXXXXXX
  • found in the vs startup log that processing of Progression_NativePackage_Component_x86.pkgdef bailed out, indicating an inconsistent extension installation

Sreekumar P's user avatar

Sreekumar P

5,82211 gold badges57 silver badges81 bronze badges

answered Mar 14, 2017 at 15:12

niclar's user avatar

niclarniclar

9526 silver badges2 bronze badges

7

I only had to rename(if you wan’t to back it up)/delete the following file:

privateregistry.bin

or

privateregistry.user.bin

depending on Visual Studio version.

%LocalAppData%MicrosoftVisualStudio15.0_********privateregistry.bin

%LocalAppData%MicrosoftVisualStudio15.0_********privateregistry.user.bin

After restarting Visual Studio 2017 you may need to activate Tools or Extensions again.

Community's user avatar

answered Mar 26, 2017 at 13:54

Bruno Bieri's user avatar

Bruno BieriBruno Bieri

9,55311 gold badges61 silver badges89 bronze badges

7

Please check if the machine has Symantec Workspace Virtualization Agent installed. Removing the product from addremove programs fixed the unknown error while launching VS 2017.

Here is the detail of the product.
Product code: {785F9A4D-D113-43B3-AA1D-77AD777F0A2F}
Package code: {32DB9767-3EF7-465A-ADF2-7ECFD25ABC12}
Install date: 2015.05.21
Version: 6.4.1266
Publisher: Symantec

answered Mar 23, 2017 at 15:22

rathish rk's user avatar

rathish rkrathish rk

4144 silver badges8 bronze badges

I ran it as Admin and it somehow booted up just fine after that. I was getting the same error even after making sure that all packages and SDKs were installed until I ran it as admin.

Basically, just go to the shortcut in Start or to the .exe in the files, then right click it and run as Admin or change it in the properties. Tbh, it seems like a temporary fix and I’d actually like to know the real source of the problem, but for now, I don’t have to reinstall and repair over and over.

Same version: Visual Studio Community 2017 installed using the launcher

answered Mar 13, 2017 at 13:11

Sorral's user avatar

3

I have a same problem after update VS 2017 Enterprise to the build 26228.9.

Repair installation doesn’t fix anything. Still I got «Unknown error» message immediately after start VS2017.

Fixing is possible by removing this folder:

"C:UsersUSER_NAMEAppDataLocalMicrosoftVisualStudio15.0_xxxxxxx"

where xxxxxxxx is some hexadecimal number.

BUT AFTER THAT YOU LOSE ALL SETTINGS that you done on your installation of VS 2017 (except product license key appliance).

Sorry that I must say this, but:

Maybe will be better stuck on the VS2015 for now. Because MS still not has really fully functional build of VS for now.

VS 2017 is still ready for first experimenting only and not for real work.

It is same story like a was when VS2015 has been published. (after several days stop working).

Neil's user avatar

Neil

14k3 gold badges28 silver badges50 bronze badges

answered Mar 16, 2017 at 14:33

Poke's user avatar

0

I fixed it the same way as niclar by deleting folder 15_.*. It does however appear that renaming privateregistry.bin has same effect with less trouble.

As mentioned by Torbjorn, ReSharper and other Extensions can mess up, however no reinstall required.

Merely go to Tools > Extensions and Updates… > Scroll through list of Installed Extensions > Enable those that should be enabled.

answered Apr 11, 2017 at 7:21

Emil L.'s user avatar

I have a side by side installation with VS2015. After opening and closing VS2015 once, VS2017 ist starting again normally. Strange but helped in my case.

answered May 15, 2017 at 8:17

martinoss's user avatar

martinossmartinoss

5,0482 gold badges45 silver badges50 bronze badges

I only needed to delete or rename ApplicationPrivateSettings.lock within C:users{your username}AppDataLocalMicrosoftVisualStudio15.0_c31ecfb9 folder.

answered Jun 8, 2017 at 16:56

Nick Painter's user avatar

I was experiencing this issue with Visual Studio Professional
when not running as administrator. (It worked Ok as administrator)
I used Niclar’s solution of deleting the folders.

answered Jul 17, 2017 at 21:14

Kirsten's user avatar

KirstenKirsten

14.3k38 gold badges166 silver badges295 bronze badges

I found same issue after installing the extension and removing the folder «C:UsersUSER_NAMEAppDataLocalMicrosoftVisualStudio15.0_xxxxxxx» solved my problem.

answered Sep 2, 2019 at 5:19

Roh8Stha's user avatar

1

you can rename the Solution Name and reopen the Project it solved for me after repairing the VS Installation

answered May 20, 2020 at 22:44

Mohamed Farrag's user avatar

21 ответ

В вашем пути перечислены только Visual Studio 11 и 12, он хочет 14, это Visual Studio 2015. Если вы установите это и не забудьте отметить поле для Languages->C++ тогда он должен работать.

В моей установке Python 3.5 сообщение об ошибке было немного более полезным и включало URL-адрес, чтобы получить его от

 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Изменение: Новая рабочая ссылка

Изменение: Как было предложено Lightfire228, вам также может потребоваться обновить пакет setuptools, чтобы ошибка исчезла:

pip install --upgrade setuptools

davidsheldon
30 нояб. 2016, в 13:12

Поделиться

Чтобы решить любую из следующих ошибок:

  • Failed building wheel for misaka
  • Failed to build misaka
  • Microsoft Visual C++ 14.0 is required
  • Unable to find vcvarsall.bat

Решение:

  1. Перейти к инструментам сборки для Visual Studio 2017

  2. Выберите бесплатную загрузку под Visual Studio Community 2017. Это позволит загрузить установщик. Запустите установщик.

  3. Выберите то, что вам нужно, на вкладке рабочей нагрузки:

    а. Под Windows есть 3 варианта. Проверяйте только разработку рабочего стола с помощью C++

    б. Под Web & Cloud есть 7 вариантов. Проверяйте только разработку Python (я считаю, что это необязательно, но я сделал это).

  4. В cmd наберите pip3 install misaka Изображение 111353

Обратите внимание: если вы уже установили Visual Studio, то при запуске установщика вы можете изменить свой (нажмите кнопку «Изменить» в Visual Studio Community 2017) и выполнить шаги 3 и 4.

Изображение 111354

Последнее замечание: если вы не хотите устанавливать все модули, достаточно иметь 3 из них (или более новую версию V C++ 2017). (Вы также можете установить Visual Studio Build Tools только с этими параметрами, поэтому вам не нужно устанавливать саму Visual Studio Community Edition) => Эта минимальная установка уже занимает 4,5 ГБ, поэтому сохранение чего-либо полезно Изображение 111355

WISAM
23 апр. 2018, в 17:38

Поделиться

Как указывалось в других ответах, одним из решений является установка Visual Studio 2015. Однако для этого требуется несколько ГБ дискового пространства. Один из способов — установить предварительно скомпилированные двоичные файлы. Веб-страница http://www.lfd.uci.edu/~gohlke/pythonlibs (mirror) содержит предварительно скомпилированные двоичные файлы для многих пакетов Python. После загрузки пакета, представляющего для вас интерес, вы можете установить его, используя pip install, например pip install mysqlclient‑1.3.10‑cp35‑cp35m‑win_amd64.whl.

Franck Dernoncourt
07 май 2017, в 01:41

Поделиться

Двоичная установка это простой способ!

Я не могу поверить, что никто не предложил это уже — используйте опцию только для двоичного кода для pip. Например, для mysqlclient:

pip install --only-binary :all: mysqlclient

Многие пакеты не создают сборки для каждого отдельного выпуска, что заставляет ваш пип собираться из исходного кода. Если вы счастливы использовать последнюю предварительно скомпилированную двоичную версию, используйте --only-binary :all: чтобы позволить pip использовать более старую двоичную версию.

Alastair McCormack
28 июнь 2018, в 17:31

Поделиться

У меня была точная проблема при попытке установить Scipping web scraping Python на моем компьютере с Windows 10. Я понял решение таким образом:

  1. Загрузите последний (последний) файл колеса по этой ссылке файл колеса для скрученного пакета Изображение 111356

  2. Я бы рекомендовал сохранить этот файл колес в каталоге, где вы установили Python, т.е. где-то на локальном диске C

  3. Затем зайдите в папку, где находится файл колес, и запустите pip install <*wheel file name*>

  4. Наконец, запустите команду pip install Scrapy раз, и вы можете использовать Scrapy или любой другой инструмент, который потребовал от вас загрузки огромного пакета C++ пакета /SDK для Windows.

Отказ от ответственности: это решение работало для меня при попытке установить Scrapy, но я не могу гарантировать то же самое при установке других программных продуктов/пакетов/и т.д.?

Sushant Chaudhary
22 дек. 2017, в 05:24

Поделиться

У меня была такая же проблема при установке модуля spaCy. И я проверил панель управления, у меня уже есть несколько визуализированных перераспределителей С++.

То, что я сделал, это выбрать «Microsoft Visual Studio Community 2015», который уже установлен на моем ПК → «Изменить» → проверить «Общие инструменты для Visual С++ 2015». Затем потребуется некоторое время и загрузка более 1 ГБ для его установки.

Это исправило мою проблему. Теперь у меня установлен spaCy.

Tyler 十三将士归玉门
08 март 2017, в 09:21

Поделиться

У меня была такая же проблема. Решение для обновления setuptools

pip install -U setuptools

или же

pip install setuptools --upgrade

user3661384
21 нояб. 2017, в 21:20

Поделиться

Убедитесь, что вы установили эти требуемые пакеты. Отлично сработало в моем случае, так как я установил проверенные пакеты Изображение 111357

Dikshit Kathuria
04 фев. 2019, в 09:16

Поделиться

Чтобы расширить ответы по ocean800, davidsheldon и user3661384:

Теперь вы больше не должны использовать Visual Studio Tools 2015, поскольку доступна более новая версия. Как указано в документации по Python, вы должны использовать Visual Studio Tools 2017 вместо этого.

Visual C++ Build Tools 2015 был обновлен Microsoft до Build Tools для Visual Studio 2017.

Загрузите его отсюда

Вам потребуется также необходимо setuptools, если у вас нет инструментов настройки запуска:

pip install setuptools

Или, если у вас уже есть, не забудьте обновить его.

pip install setuptools --upgrade

Для ссылки на документацию по Python выше вы увидите, что версия setuptools должна быть не менее 34.4.0. для VS Tools для работы

Simon
11 апр. 2018, в 14:42

Поделиться

У меня была точно такая же проблема, и я решил ее, установив mysql-connector-python с помощью:

pip install mysql-connector-python

Я нахожусь на python3.7 & windows 10, и установка Microsoft Build Tools для Visual Studio 2017 (как описано здесь) не решила мою проблему, которая была идентична вашей.

New2Python
18 сен. 2018, в 19:54

Поделиться

У меня была такая же проблема. Загрузка инструментов сборки для Visual Studio 2017 работала для меня. Найдите здесь

ocean800
06 июнь 2017, в 22:06

Поделиться

У меня была именно эта проблема при попытке установить mayavi.

Поэтому у меня также была распространенная error: Microsoft Visual C++ 14.0 is required при установке библиотеки pip.

Изображение 111358

После просмотра многих веб-страниц и решений этой темы, ни один из них не работает. Я полагал, что эти шаги (большинство взятых из предыдущих решений) позволили этому работать.

  1. Перейдите в раздел Инструменты сборки для Visual Studio 2017 и установите Build Tools for Visual Studio 2017. Который находится в разделе All downloads (прокрутите вниз) >> Tools for Visual Studio 2017
    • Если вы уже установили это, перейдите к 2.

Изображение 111359

  1. Выберите C++ Components (я не знал, какие из них мне понадобились, поэтому установил многие из них).
    • Если вы уже установили Build Tools for Visual Studio 2017 откройте приложение Visual Studio Installer затем перейдите в Visual Studio Build Tools 2017 >> Modify >> Individual Components и Modify необходимые компоненты.
    • C++/CLI support другим ответам, важными компонентами являются: C++/CLI support, VC++ 2017 version <...> latest, Visual C++ 2017 Redistributable Update, Visual C++ tools for CMake, Windows 10 SDK <...> for Desktop C++, Visual C++ Build Tools core features Visual Studio C++ core features Visual C++ Build Tools core features Visual Studio C++ core features.

Изображение 111360

  1. Установите/измените эти компоненты для Visual Studio Build Tools 2017.

  2. Это важный шаг. Откройте приложение Visual Studio Installer затем перейдите в Visual Studio Build Tools >> Launch. Который откроет окно CMD в правильном месте для Microsoft Visual StudioYYYYBuildTools.

Изображение 111361 Изображение 111362 Изображение 111363

  1. Теперь введите python -m pip install --upgrade setuptools в этом окне CMD.

Изображение 111364

  1. Наконец, в этом же окне CMD pip установите вашу библиотеку python: pip install -U <library>.

Изображение 111365

Aldahunter
20 март 2019, в 16:35

Поделиться

У вас была такая же проблема при использовании последней версии Python 3.6. В ОС Windows 10 Home Edition и 64-битной операционной системе

Шаги для решения этой проблемы:

  • Удалите все версии Visual Studio, которые у вас были, через Панель управления
  • Установите Visual Studio 2015 и выберите параметр по умолчанию, который будет установлен
    Visual С++ 14.0 самостоятельно
  • Вы можете использовать Pycharm для установки scrapy → Project- > Project Interpreter → +
    (установите программу)
  • проверить запыленность в REPL и pycharm по импорту, вы не должны видеть никаких ошибок

Sandeep Anand
04 май 2017, в 06:59

Поделиться

У меня была та же проблема. Мне понадобилась 64-разрядная версия Python, поэтому я установил 3.5.0 (самое последнее из написания этого). После перехода на 3.4.3 все мои модули работали.

Релизы Python для Windows

David Braun
30 апр. 2015, в 20:16

Поделиться

Посмотрите, есть ли в пакете официальная вилка, включающая необходимые бинарные колеса.

Мне нужен был пакет python-Levenshtein, у меня была эта ошибка, и я вместо этого нашел пакет python-Levenshtein-wheels.

XavierBrt
09 апр. 2019, в 10:39

Поделиться

После прочтения большого количества ответов в SO, но ни один из них не сработал, мне, наконец, удалось решить его, выполнив шаги в этой теме. Я оставлю здесь шаги на случай, если страница исчезнет:

Попробуйте установить инструменты сборки для Visual Studio 2017, выберите рабочую нагрузку «Инструменты сборки Visual C++» и проверьте параметры «Поддержка C++/CLI» и «V C++ 2015.3 v14.00 (v140) для рабочего стола». «как показано ниже.

Изображение 111366

Надеюсь, это поможет, как и для меня.

ElBaulP
08 апр. 2019, в 15:46

Поделиться

Ни одно из решений здесь и в других местах не помогло мне. Оказывается, на моей 64-битной ОС Windows 10 устанавливается несовместимая 32-битная версия mysqlclient, потому что я использую 32-битную версию Python.

Мне пришлось удалить мой текущий Python 3.7 32bit, и переустановить Python 3.7 64bit, и все теперь работает нормально

Vyrnach
25 дек. 2018, в 08:07

Поделиться

Я не смог прокомментировать @Sushant Chaudhary ответ так подумал, чтобы добавить ответ здесь.

Я столкнулся с точной проблемой, когда пытался установить исцеление. Я следовал инструкциям из вышеупомянутого ответа @Sushant Chaudhary.

в моем случае, я получил еще одну ошибку относительно lxml, как показано ниже

copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-3.7lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Мне пришлось установить lxml-4.2.3-cp37-cp37m-win_amd64.whl так же, как в ответ @Sushant Chaudhary, чтобы успешно завершить установку Scrapy.

  1. Загрузите lxml-4.2.3-cp37-cp37m-win_amd64.whl из https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
  2. поместить его в папку, когда установлен python
  3. установите его с помощью pip install <file-name>

теперь вы можете запустить pip install scrapy

Vishal Patel
24 июль 2018, в 10:15

Поделиться

К сожалению! Похоже, у них нет колес Windows на PyPI.

Тем временем, установка из источника, вероятно, работает или пытается загрузить MSVC++ 14, как это предложено в сообщении об ошибке, и другими пользователями на этой странице.

На сайте Christoph также есть неофициальные бинарные файлы Windows для пакетов расширения Python (файлы.whl).

Выполните шаги, указанные в следующих ссылках для установки двоичных файлов:

  1. Непосредственно в базовом python
  2. В виртуальных средах /Pycharm

Также проверьте:

Какой бинарный файл скачать?

Shashank Singh
20 март 2018, в 15:41

Поделиться

Я столкнулся с той же проблемой. Следующие работали для меня: загрузите файл нестационарных двоичных файлов из сайта установщиков Christoph Gohlke в соответствии с версией python, установленной в вашей системе. Перейдите в папку, в которой вы установили файл, и выполните

pip install filename

Для меня python_ldap‑3.0.0‑cp35‑cp35m‑win_amd64.whl работал как моя машина 64-битная, а версия python — 3.5. Это успешно установило python-ldap на моем компьютере Windows. Вы можете попробовать то же самое для mysql-python

Sneha
21 март 2018, в 11:46

Поделиться

Ещё вопросы

  • 0Ионные вложенные представления нагружают друг друга
  • 1Как хранить переменную массива JSON и печатать конкретное значение. (ЯВА)
  • 1Chainer — прогнозирование с использованием графического процессора
  • 1Сообщение SignalR не работает при отправке со стороны сервера клиенту
  • 0php удалить переменную QUERY_STRING
  • 1Сортировка ArrayList <String> с пользовательским компаратором
  • 1Утечка памяти Android, без статических переменных
  • 02 вопроса на Backbone.js MVC
  • 1Hibernate принудительное взаимодействие с «центральной» сущностью
  • 0Добавить страницу перед первой страницей в TCPDF
  • 1Вставить Java-апплет на страницу GitHub
  • 0Запрет обратной передачи из угловой директивы
  • 0PHP Build Tree с тегом ul
  • 0База данных не обновляется в HTML-таблице
  • 0Laravel Artisan Migrate отказано в соединении
  • 1Полимер — Распределяются ли узлы в стиле, а затем распространяются?
  • 1Небольшая проблема с объединением / объединением фреймов данных с одинаковыми именами столбцов
  • 0получить значение из строковой переменной, содержащей десятичное число, представляющее значение около 64 гигабайт
  • 1Эквивалент Ruby pack (‘H *’) в Python
  • 1В чем преимущества использования Dozer в проекте Spring Hibernate?
  • 0отслеживать некоторые определенные точки в последовательностях кадров, используя opencv и c ++
  • 0Список привязок выпадающий с помощью библиотеки сетки добавления
  • 0Как настроить Tomcat для одного подключения к базе данных на запрос
  • 1Ошибка 404 на статических ресурсах с параметрами при получении запроса
  • 1Почему эта задача завершается без задержки?
  • 1Получить входные значения и вставить в функцию с двумя параметрами, чтобы сделать прямоугольник?
  • 0Как заставить скрытый элемент скользить вниз, не затрагивая другие элементы в той же строке
  • 1Android — RadioButton и RadioGroup
  • 1startActivity на Android
  • 0Копирование статического массива в динамический массив в C ++
  • 0Использование массивов в значениях параметров
  • 0Mean.js — Использование URL в качестве параметра Mongoose
  • 1Слишком много соединений (новая ошибка)
  • 1Java — не работает привязка клавиш
  • 1Доступ к папке ресурсов в приложении Spring / Maven
  • 0Фильтровать сопоставленные элементы по имени класса в Angular JS.
  • 1Условно прерванная отладка
  • 1Как заполнить 10% экрана Android?
  • 0Как удалить ненужные символы из строки
  • 1Разбитый канал с использованием DataInputStream и DataOutputStream и сокетов
  • 1Как отменить выбор области «Использовать» в таблице электронных таблиц после использования функции выбора
  • 0Почему у меня есть вывод знака «=» и 2 смайлика вместо правильного вывода? C ++
  • 0Почему обработчики событий не работают после того, как я изменил src изображения?
  • 1Извлечение данных из дерева
  • 1Электрон: Не удается найти модуль «электронная сборка»
  • 1нехватка памяти ошибка в Android
  • 1Java — Как назначить / скопировать содержимое String внутри функции
  • 0Распечатать все столбцы из базы данных, используя c ++ [duplicate]
  • 0Анимация jQuery width () создает отступы (возможно, проблема с CSS)
  • 0CSS игнорирует идентификатор div, но не класс

Понравилась статья? Поделить с друзьями:
  • Требуется объявление c ошибка
  • Требуется действие нет подключения к интернету как исправить
  • Требуется внешний накопитель play market как исправить
  • Требуется авторизация как исправить
  • Требуется while c ошибка