Error saying Microsoft Visual C 14 0 is required Get it with Microsoft Visual C Build Tools http landinghub visualstudio com visual-cpp-build-tools

+2 votes

I'm trying to install Ansible on windows, I executed this command and ended up with an error

pip install ansible

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": 
Jan 31, 2019 in Ansible by Kiara
10,187 views
Hey @Kiara, can you check what python version do you have?
32 bit I guess...
Uninstall the 32 bit and Install the 64 bit
ohh thanks, that cleared the error..
this worked...
Hi Team,

I have the same error, when i try to run the pip install -r requrements.txt inside the docker container, getting below error.

PS C:\> docker exec -ti 6da69427f8f3 cmd                                                                                                                                                   Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is 3A7F-74C8

 Directory of C:\

11/23/2016  04:15 AM             1,894 License.txt
11/28/2019  03:31 PM    <DIR>          PerfLogs
11/28/2019  03:42 PM    <DIR>          Program Files
07/16/2016  06:48 PM    <DIR>          Program Files (x86)
12/11/2019  06:17 AM    <DIR>          Python
12/13/2019  01:34 PM               511 requirements.txt
11/28/2019  03:43 PM    <DIR>          Users
12/18/2019  08:03 PM        15,060,496 VC_redist.x64.exe
12/18/2019  05:23 PM         3,287,928 visualcppbuildtools_full.exe
12/18/2019  07:02 PM    <DIR>          Windows
               4 File(s)     18,350,829 bytes
               6 Dir(s)  20,989,935,616 bytes free

C:\>pip install -r requirements.txt
Collecting cx-Oracle==7.2.2
  Using cached https://files.pythonhosted.org/packages/79/ea/9dedf9b3914207005b6ab683095d72387775adfed4f4fd0be83d5d744e7d/cx_Oracle-7.2.2.tar.gz
Processing c:\users\containeradministrator\appdata\local\pip\cache\wheels\2a\77\35\0da0965a057698121fc7d8c5a7a9955cdbfb3cc4e2423cad39\et_xmlfile-1.0.1-cp38-none-any.whl
Collecting Faker==2.0.2
  Using cached https://files.pythonhosted.org/packages/bf/5a/44c04abc182990d716eb7703502aa851433ea66569bd72765ef1abdaea9c/Faker-2.0.2-py2.py3-none-any.whl
Collecting jdcal==1.4.1

 ERROR: Failed building wheel for pandas
  Running setup.py clean for pandas
Failed to build cx-Oracle numpy pandas
Installing collected packages: cx-Oracle, et-xmlfile, python-dateutil, text-unidecode, Faker, jdcal, names, numpy, openpyxl, pytz, pandas, robotframework-databaselibrary, xlrd,
robotframework-datadriver, robotframework-excellib, wrapt, robotframework-faker, urllib3, selenium, robotframework-seleniumlibrary, virtualenv, XlsxWriter, xlwt
    Running setup.py install for cx-Oracle ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'
C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-dipsldi8\\cx-Oracle\\setup.py'"'"';
 __file__='"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-dipsldi8\\cx-Oracle\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
 '"'"'exec'"'"'))' install --record 'C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-record-ngyxpg14\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-dipsldi8\cx-Oracle\
    Complete output (5 lines):
    running install
    running build
    running build_ext
    building 'cx_Oracle' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '
"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-dipsldi8\\cx-Oracle\\setup.py'"'"'; __file__='"'"'
C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-dipsldi8\\cx-Oracle\\setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record 'C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-record-ngyxpg14\install-record.txt'
 --single-version-externally-managed --compile Check the logs for full command output.

So any help on this please.

Thanks

Sanjeev Kumar N
Hello @sanjeev Kumar

Can you please share your requirements.txt file?
Hi Kalgi,

Please find the requirements.txt file content.

                                            Installed status
cx-Oracle==7.2.2                       No    
et-xmlfile==1.0.1
Faker==2.0.2
jdcal==1.4.1
names==0.3.0
numpy==1.17.2                                No
openpyxl==3.0.0
pandas==0.25.1
python-dateutil==2.8.0                       No
pytz==2019.2
robotframework==3.1.2
robotframework-databaselibrary==1.2.4
robotframework-datadriver==0.3.2
robotframework-excellib==1.1.0
robotframework-faker==4.2.0
robotframework-seleniumlibrary==4.0.0
selenium==3.141.0
six==1.12.0
text-unidecode==1.3
urllib3==1.25.6
virtualenv==16.7.5
wrapt==1.11.2
xlrd==1.2.0
XlsxWriter==1.2.1
xlwt==1.3.0
All your dependencies are included?
This error usually bothers when each package's dependencies aren't satisfied. You might be either missing out on including dependency or might have missed out on the order.

For example, You could be installing a package who is dependant on a certificate which is only being installed later.

2 answers to this question.

+1 vote
Hey @Kiara, Check your python version, uninstall if its 32 bit and re-install the 64 bit one.

Thanks
answered Jan 31, 2019 by Mahir
0 votes

pip install mysqlclient not work . the following image error

answered Jan 1, 2020 by mohd akram
Hey, can you please copy-paste the error here in the text format. The image is very difficult to read.

I get the same, did aything solve the mysqlclient error.

i have installed the bulid tools from https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019 but still have the same error 

Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualst udio.com/visual-cpp-build-tools

Hey could you please post the error logs that you get?

Related Questions In Ansible

0 votes
1 answer

Error saying "Failed to find required executable npm in paths"

Hey @Thomas,  Seems like those extra paths have ...READ MORE

answered Jan 10, 2019 in Ansible by Naina
2,911 views
+1 vote
2 answers
0 votes
1 answer

Error saying "One or more undefined variables: 'ansible_facts' is undefined"

The command you've executed basically means run ...READ MORE

answered Jan 17, 2019 in Ansible by Karen
4,630 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,042 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP