Microsoft Visual C++ 14.0 is required. - scrapy

when i install scrapy package,The following error occurred:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
but the website is not found,so how to solve the problem?

The package is asking for the VS2015 build tools, which are now available as part of the VS2017 build tools. Download them here, or more specifically, here.

You need to install the latest version of the Visual Studio. By version 14.0, only Visual Studio 2015 is required, but to provide support for further releases and some other programs and libraries that you might use, it is recommended to install the latest (Visual Studio 2017) which also comes with the 2015.
That link does not work, but you can find the new here: Visual Studio Build tools
Make sure to tick "Languages->C++". It should be automatic, but just to make sure.
Also, you probably would want to upgrade your setup tools for Python, setuptools.
You can do this with:
pip install --upgrade setuptools
The reason you would want to do that is, based on experience, because that error can continue to persist with Python even after you install the Visual Studio and the setup tools are not up to date.

I ran into issues getting this to work on Python 2 and 3 even after re-downloading Microsoft Visual tools, upgrading setuptools, and trying to install scrapy again.
Workaround solution that worked for me:
I already had an installation of Anaconda and was able to install Scrapy using Anaconda.

Try this approach:
Visit https://pypi.org/project/Scrapy/#files
Download the latest 'Wheel' file-type
pip install "downloaded.whl" (i.e., pip install Scrapy-1.8.0-py2.py3-none-any.whl)

Related

Visual Studio 2022 does not find reference assemblies for >NETframework Version 4.0

Trying to compile Python Django project but receiving build error:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
Done building project "myFinancialTracker.pyproj" -- FAILED.
How can I resolve?
I also got the same error as you, this is because VS 2022 doesn't come with
.net framework 4.0 option during installation, to overcome this problem I install VS 2019 and enable the usage of .net-framework 4.0 during installation. After the installation, I tried to run my project again using VS2022 and the error goes away.
I tried to download and install .net-framework 4.0 separately but Microsoft doesn't allow me to do so, to overcome this, I install VS2019 instead.

Installation fails for CNTK v.2.0 Beta 8 Release when VS2015 is already installed

I have VS2015 already installed on my machine, and when I try to install CNTK v.2.0 Beta 8 Release (Script-driven installation) it spawns VS installation window which immediately gets closed and I get next output:
The following operations will be performed:
* Install VS2015 Runtime
* Setup CNTK PythonEnvironment 34
* Setup/Update CNTK Wheel 34
* Create CNTKPY batch file
Do you want to continue? (y/n)
y
Performing download operations
Download operations finished
Performing install operations
Installing VS2015 Runtime....
Fatal error during script execution!
System.Management.Automation.RuntimeException: Running 'start-process /install /passive /norestart' failed with exit code [1638]
It is weird that installation is trying to perform "Install VS2015 Runtime" step even though I have VS2015 installed. I also have VS2017 RC installed, I guess maybe that's a problem. By quick Google search I found that exit code 1638 means:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
Issue is solved by uninstalling Microsoft Visual C++ 2017 RC Redistributable (solely uninstalling VS2017 RC doesn't help!). It seems that when VS2017 RC is installed it replaces C++ 2015 redistributable with C++ 2017 RC redistributable since they are both version 14, and then when CNTK installation is run it cannot find C++ 2015 redistributable and tries to install it but installation fails because redistributable of same version (14, but latter version date) is already installed.
I believe that CNTK installation should be smarter when it checks if C++ 2015 redistributable exists, i.e. it should check for redistributable version (14 in this case) not the name of redistributable.
This has been fixed in the codebase now, and will be in the next release (should happen in the next few days)
we were checking the installed programs for a installed VS15 runtime. the VS17 runtime is compatible, but naturally it is also announced as a VS17 runtime, so our check failed.
We check now for a VS15 or VS17 runtime.
#MarkoR: Thanks for finding and doing the legwork in investigating!
Wolfgang
Let us know how that goes. We did not see this problem when folks had VS2015 and CTNK was supported on VS2013 only.
Thank you for trying this out...
I will investigate and hopefully I can make a fix available soon ...

Open XML SDK 2.5 can't install because it is not already installed?

i'm having some trouble installing OpenXML SDK for Microsoft office. I have downloaded the .msi from the MSDN website, run it but before any installation wizard shows, i get this window popping up:
It seems to want to install itself before it will install itself.. I have OpenXML on my other PC and this installed fine with no issues and have used the tool for a project.
I have .NET 4.6.2 installed on my machine.
Has anyone seen this before?
There are 2 separate installers on the OpenXml 2.5 MSDN page - the SDK and the tools. From the error message you are seeing it looks like you are trying to install the Tools but in order to do so you need the SDK installed first.

'npm' is not recognized as an internal or external command error in Developer Command Prompt for VS2015

I am trying to execute npm install –g tsd in Developer Command Prompt for VS2015.
But it returns
'npm' is not recognized as an internal or external command,
operable program or batch file.
Any idea?
To solve this issue in Visual Studio 2017 (and above), make sure to install the NodeJS tools in the VS installer.
To launch it, go to Control Panel -> Programs -> Programs and Features, scroll down to Visual Studio 2017 and click Change.
Choose Modify in the installer.
Check the Node.js development checkbox and click Modify to complete the installation.
Download / Install NodeJS tools for Visual Studio; that'll fix the issue and give you intellisense among other benefits!
https://github.com/Microsoft/nodejstools
This solution is specifically for Visual studio code editor.
The easiest way to solve that, is to install plugin for node.js using VS code editor,
To do that follow the steps.
click on Extension Icon, and type in search box node.js, It will give you search result.
Look for the node.js Extension pack.
It should look like the bellow screen, I have already install, the extension. That is why, the green install button is not visible, Just hit on install, once finished. Restart the VS code. now it should work for sure.
You can install Node.js from https://nodejs.org/en/. 'npm' may be unrecognized in Visual Studio 2017 and Win 10 OS when node.js package is not found. After installing node.js package, it will automatically add '..\nodejs' value in Environment variable 'PATH'. Once node.js package is installed, restart your Visual Studio 2017 to Rebuild your project again.

Getting msbuild.exe without installing Visual Studio

How do you get msbuild.exe without installing those crazy Visual Studio programs?
I need it for an npm install to finish working. I'm on Windows 7 and can't get on older version of Visual Studio 2013 Express online.
The latest (as of Jan 2019) stand-alone MSBuild installers can be found here: https://www.visualstudio.com/downloads/
Scroll down to "Tools for Visual Studio 2019" and choose "Build Tools for Visual Studio 2019" (despite the name, it's for users who don't want the full IDE)
See this question for additional information.
It used to be installed with the .NET framework. MsBuild v12.0 (2013) is now bundled as a stand-alone utility and has it's own installer.
http://www.microsoft.com/en-us/download/confirmation.aspx?id=40760
To reference the location of MsBuild.exe from within an MsBuild script, use the default $(MsBuildToolsPath) property.
You can also get the MSBuild executable as a Nuget package https://www.nuget.org/packages/Microsoft.Build.Runtime/.
Download MSBuild with the link from #Nicodemeus answer was OK, yet the installation was broken until I've added these keys into a register:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSBuild\ToolsVersions\12.0]
"VCTargetsPath11"="$([MSBuild]::ValueOrDefault('$(VCTargetsPath11)','$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\V110\\'))"
"VCTargetsPath"="$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensionsPath32)\\Microsoft.Cpp\\v4.0\\V110\\'))"