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

  • 問題

  • 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 https://visualstudio.microsoft.com/downloads/". But my computer could not access to the internet, so how could I install microsoft c++ offline correctly? 
    2021年5月27日 上午 03:35

所有回覆

  • check out this 

    https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019

    • 已提議為解答 Gadai BPKB 2021年6月12日 上午 05:27
    2021年5月29日 上午 11:08
  • its already posted, kindly first search for previously posted threads.
    2021年5月29日 下午 03:00
  • 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.

    source: www.aaronjgrossman.com


    2021年6月10日 上午 04:40
  • Best solution to your problem and future problems might occur with time, i suggest you not to install programming software in os partition.  

    • download vmware player 6 or more
    • install vmware 
    • fetch linux iso image ( centos 8 or Linux oracle ) or ( Ubuntu , if you are new to linux go with linuxfx exactly same Gui as win10). 
    • install your linux in the virtual machine ,  
    • after installation, in web find the command to install python, and can find multiple app for programming free
    • enjoy programming without harming your physical machine. 

    2021年6月23日 上午 02:03
  • Thank You.
    • 已提議為解答 erwinpratama 2021年6月26日 上午 06:14
    2021年6月26日 上午 06:13
  • This is probably the best solution for the problem!
    2021年7月18日 下午 03:56
  • Best answer for your concern and future issues may happen with time, I recommend you not to introduce programming in os parcel. 

    download vmware player at least 6 

    introduce vmware 

    bring linux iso picture ( centos 8 or Linux prophet ) or ( Ubuntu , in case you are new to linux go with linuxfx precisely same Gui as win10). 

    introduce your linux in the virtual machine , 

    after establishment, in web discover the order to introduce python, and can discover numerous application for programming free 

    appreciate programming without hurting your actual machine.
    2021年7月19日 上午 05:44
  • After months of researching and trying all sorts of methods the following has worked:

    Step 1: Download the build_tools.exe of your choice

    Step 2: Make sure you are on a machine with the exact same environment you are going to install the c++ dependencies on. i.e. If server is windows server 2016 64bit run a vm to emulate that exact environment.

    Step 3: Goto this site to get a list of all possible components you can download in the next step - https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2019

    Step 4: Follow the following instructions to get a local cache download of your choice - https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019

    Step 5: copy everything to the server and continue following the instructions from step 4

    Step 6: restart the machine to apply paths properly

    Step 7: copy rc.exe and rcdll.dll from C:\Program Files (x86)\Windows Kits\8.0\bin\x86 to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

    Step 8: Download the latest setuptools from pypi.org

    Step 9: run the following command with admin rights python -m pip install path/to/setuptools.tar --upgrade

    Step 10: Restart machine again to apply paths.

    Once all steps are followed c++ 14.0 (or of your choice) will be installed properly and linked with no issues.

    2021年7月20日 上午 05:16
  • Hello, If you want to install MS c++ 14.0 offline then you should follow below steps.

    1- Set up a folder on a drive where you have a good amount of space free.

    2- Run the executable from the command line with additional arguments.

    3- Once everything is downloaded, copy the folder over to the device it's to be installed on.

    2021年7月27日 上午 05:57
  • You can get Visual Studio 2019 community edition it has it and you can build c++ with that.
    2021年8月14日 上午 03:20
  • Thanks for your help. By this i overcome all the loopholes.
    2021年8月20日 下午 12:17
  • Thank you for sharing this, it was helpful.
    2021年8月29日 上午 05:02
  • 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 https://visualstudio.microsoft.com/downloads/". But my computer could not access to the internet, so how could I install microsoft c++ offline correctly? 
    Hi, 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. Download the Build Tools executable from the network installation page. Set up a folder on a drive where you have a good amount of space free.
    2021年8月30日 下午 07:26
  • Thank you.
    2021年9月17日 上午 07:42
  • Is it a Virtual machine or just a PC without internet? Because if you can't access to the internet you could try to download it and install it from a usb flash drive. I think that you should explain why you can't connect your machine to the internet, it's to be honest, the simpler way to do it, otherwise you are going to spend hours trying to search for a way to do it.
    2021年9月18日 下午 02:04
  • i have same issues here :(
    2021年10月1日 下午 04:34
  • I agree with you, I don't even see the point of doing it all without the internet, but if someone has to, then it makes sense  

    2021年10月5日 下午 01:03
  • Right
    2021年10月12日 上午 06:42
  • I suggest you do not install programming software in the os partition. This will help you solve your problem and prevent future problems.  

    Get the latest version of VMware player.
    Download and install the program. 
    If you're new to linux, use linuxfx (the same GUI as win10) or the centos 8 iso (or Linux Oracle). 
    Download the linux ISO, install it, then open the linux Oracle.  
    Install Python, and you can find a number of free programming apps on the web after installation
    enjoy programming without harming your physical machine.
    2021年10月13日 上午 07:49
  • i have same problem with this
    2021年10月15日 下午 10:20