How could I install microsoft c++ 14.0 offline? RRS feed

  • Question

  • Rescently, I definitely struggle with this bug when I install a python package cx_Oracle, "building cxoracle extension error: Microsoft visual c++ 14.0 is required, get it with build tools for visual studio". But my computer could not access to the internet, so how could I install microsoft c++ offline correctly? 
    Thursday, May 27, 2021 3:35 AM

All replies

  • check out this

    • Proposed as answer by Gadai BPKB Saturday, June 12, 2021 5:27 AM
    Saturday, May 29, 2021 11:08 AM
  • its already posted, kindly first search for previously posted threads.
    Saturday, May 29, 2021 3:00 PM
  • To install Microsoft Visual C++ 14.0 offline requires a few steps. This was part of the process for getting SQL Server 2017 with Machine Learning / Python running at work.

    1. Download the Build Tools executable from the network installation page.
    2. Set up a folder on a drive where you have a good amount of space free. Microsoft notes that a complete install requires at least 35 GB (Gigabytes) of space available, and in my experience I needed close to 20 GB.
    3. Run the executable from the command line with additional arguments. The ones I used were: c:\temp\vs_buildtools.exe --layout d:\vs2017offline --add Microsoft.VisualStudio.Workload.VCTools --lang en-US. To learn more about what these arguments are, check out Customizing the network layout.
    4. Once everything is downloaded, copy the folder over to the device it's to be installed on. I'm not sure if it matters, but I kept the layout folder path the same between the two devices.
    5. Normally certificates would be installed as part of a normal installation. However in this case, there are certificates that will need to be installed by hand or script as described by Microsoft. These are located in the layout folder, which for me was d:\vs2017offline\certificates. I double clicked and each certificate for the entire machine rather than for an individual user.
    6. Once the certificates are installed, the Offline Installation guide mentions running another script to install it on the local machine. I ran into issues getting this working, and so I just ran the executable from the layout folder and only installed the Build Tools that I had downloaded before. When checking the options, I turned on the mandatory content, and then the VC 14 build tools. This process took FAR longer than I expected, and had assumed it had either crashed or was trying to go out to the network. But until it actually gave me network errors, it just seems to take a while to complete.

    Once the Build Tools were installed, I had to also modify my pip.ini to connect to a local python package repository. To change the location, I created a new pip.ini file with something similar to the link above that looked like: [global] index-url = https://localhost:8443/repository/pypi-all/simple. Once I created the file, to have it picked up, I followed this Stack Overflow post and created the file in C:\ProgramData\pip\pip.ini.

    Finally, after everything was set up, I was able to run pip installer from python folder in SQL Server and install new packages.


    Thursday, June 10, 2021 4:40 AM
  • <a href="">گیج فشار</a>
    Thursday, June 10, 2021 1:05 PM
  • [URL=""]ویکا[/URL]
    Thursday, June 10, 2021 1:05 PM