benfred / implicit

Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://benfred.github.io/implicit/
MIT License
3.55k stars 611 forks source link

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

Closed opokualbert closed 6 years ago

opokualbert commented 6 years ago

Hello, I tried pip installing implicit and I get the error below. Is there any work around? running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\implicit copying implicit\als.py -> build\lib.win-amd64-3.6\implicit copying implicit\approximate_als.py -> build\lib.win-amd64-3.6\implicit copying implicit\nearest_neighbours.py -> build\lib.win-amd64-3.6\implicit copying implicit\recommender_base.py -> build\lib.win-amd64-3.6\implicit copying implicit\utils.py -> build\lib.win-amd64-3.6\implicit copying implicit__init__.py -> build\lib.win-amd64-3.6\implicit running build_ext building 'implicit._als' 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

sweramesh commented 5 years ago

Where can I find VS 2017 build tools? I tried downloading VS 2017 community version and it didn't work. I've tried looking for 2017 build tools but I can't find it.

scivision commented 5 years ago

@sweramesh vs2017 is now part of VS2019, there isn't a separate VS2017 build tools anymore.

a1-mukul commented 5 years ago

Can someone help.. I have installed build tools but I m not able to still run my code.

error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe' failed with exit status 2

nishantkumar1292 commented 5 years ago

Try this.. Install Build Tools for Visual Studio 2017, select the workload “Visual C++ build tools” and check the options "C++/CLI support" and "VC++ 2015.3 v14.00 (v140) toolset for desktop".

GitMorin commented 5 years ago

Stuck on this for 3 hours. No idea what is wrong. Visual C++ build tools are 1.49 GB large? Is this correct? Do anyone have clear instructions how to install it?I have installed it but still get the same error

ita9naiwa commented 5 years ago

How about trying installing docker and use ubuntu?

GitMorin commented 5 years ago

How about trying installing docker and use ubuntu? I would if I could but my workplace is bound to windows.. I seem to be completely stuck on this. Will probably have to resort to anaconda where I have sucessfully installed it before.

Walt-H commented 5 years ago

@GitMorin have you tried the steps in this comment?

Also, VS installs usually take way more space than that (e.g ~6.8GB), but it all depends on what other packages you include.

To clarify, @ita9naiwa is saying that you just run a Docker container that uses Ubuntu, which can all run on a Docker daemon on your Windows PC, where you just open a port on your container to access a Web UI or REST endpoint, for examples.

I would first uninstall everything, then try the steps from the link, then resort to Docker if that doesn't help.


FYI you can easily export Docker containers to AWS via ElasticBeanStalk, so using a container might not be a bad idea.

kesakeerthi commented 4 years ago

image

Could not install Contractions .. --> building 'ahocorasick' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"

Vasanth13-15 commented 4 years ago

The package is now distributed on conda forge (see https://github.com/conda-forge/implicit-feedstock), it can also be installed without needing a compiler on Linux, MacOS and Windows with,

conda install -c conda-forge implicit

Thanks a lot it worked great work bro

RSwarnkar commented 4 years ago

(Not helpful comment here but Visual Studio 14 is HORRIBLY HUGE file and many people don't have bandwidth to download 1.5+ Gigs. I'm so sad.)

mayaracsferreira commented 4 years ago

For me the problem was a missing compiler for Python 2.7 ( https://www.microsoft.com/en-us/download/details.aspx?id=44266 )

I use it with Microsoft Visual Studio 2008 Express Edition ( http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe )

prathamesh000777 commented 4 years ago

https://stackoverflow.com/a/40888720 This does solve the problem of 'error: Microsoft Visual C++ 14.0 is required.' as it upgrades setuptools package for the error.

Innoovatum32 commented 4 years ago

step 1: https://visualstudio.microsoft.com/downloads/ step 2: section Tools for Visual Studio 201 step 3: Build Tools for Visual Studio 2019 image step 4: download step 5: run the installer, choose c++ tools for installation image

image

Madhukaran commented 4 years ago

Here's what I did:

  1. Downloaded Microsoft Visual C++ Build Tools from this link: https://visualstudio.microsoft.com/downloads/
  2. Run the installer
  3. Select: Workloads → Visual C++ build tools.
  4. Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10)

Instructions from: https://www.scivision.co/python-windows-visual-c++-14-required/

does this really worked??

PoojaKatariya1811 commented 4 years ago

I had the same exact issue on my windows 10 python version 3.8. In my case, I needed to install mysqlclient and then run python manage.py makemigrations in my django project terminal. Here's what I did:

step 1 - Go to unofficial python binaries from any browser and open its website.

step 2 - press ctrl+F and type whatever you want. In my case it was mysqlclient.

step 3 - Go into it and choose according to your python version and windows system. In my case it was mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl . Download it.

step 4 - open command prompt and specify the path where you downloaded your file. In my case it was C:\Users\user\Downloads

step 5 - type pip install .\mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl and press enter.

Thus it was installed successfully, after which I went my project terminal re-entered the required command. This solved my problem

Note that, while working on the project in pycharm, I also tried installing mysql-client from the project interpreter. But mysql-client and mysqlclient are different things. I have no idea why and it did not work.

RSwarnkar commented 4 years ago

Guys, this is serious issue and a technical debt that is something either Microsoft or Python.org should address. This issue has maligned a lots of others py packages. I mean, downloading entire c++ dev tool + other irrelevant IDE just for python is ridiculous.

I hope such issues will be addressed on root cause level than just patching around the actual problem. Btw, I hate and can't waste my bandwidth for something significant to be downloaded and installed.

Get well soon ..

Zahra-HBB commented 4 years ago

Here's what I did:

  1. Downloaded Microsoft Visual C++ Build Tools from this link: https://visualstudio.microsoft.com/downloads/
  2. Run the installer
  3. Select: Workloads → Visual C++ build tools.
  4. Install options: select only the “Windows 10 SDK” (assuming the computer is Windows 10)

Instructions from: https://www.scivision.co/python-windows-visual-c++-14-required/

does this really worked??

I need to run pyreadstat library and it didn't work for me! I've got another long error including below message: " pyreadstat/pyreadstat.c(641): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe' failed with exit status 2 "

not what's the issue. I ran pip install -U setuptools too, but nothing happend.

PoojaKatariya1811 commented 4 years ago

Did you install the prerequisites required for pyreadstat? Here is the detail description on solutions of some problems when using pyreadstat.

Zahra-HBB commented 4 years ago

Did you install the prerequisites required for pyreadstat? Here is the detail description on solutions of some problems when using pyreadstat.

I looked at it but didn't understand it! (I'm quite new in python :| ). BTW, based on that it seems I need to install Anaconda3 first which I'm not sure about it.

PoojaKatariya1811 commented 4 years ago

Did you install the prerequisites required for pyreadstat? Here is the detail description on solutions of some problems when using pyreadstat.

I looked at it but didn't understand it! (I'm quite new in python :| ). BTW, based on that it seems I need to install Anaconda3 first which I'm not sure about it.

What are you unsure about? Wouldn't it be nice if it solved your problem? Based on my experience Anaconda 3 is an incredible platform. Installing libraries becomes a lot easier using anaconda navigator. It even installs all the dependencies required for your package. And it is even possible to install pyreadstat using conda.

But this is besides the main issue. Your problem is related to Visual C++ build tools. Check out this link. There are various ways to obtain Visual C++ build tools. Read all the answers and see what suits you the best.

richardbalwane commented 4 years ago

Problem is that there is a whole list of these tools! At some point it says you get to have the required CPP version 14 when you install Visual Studio but even when you do that the same error message pops when installing geoip! You wonder who is not saying what!

Zahra-HBB commented 4 years ago

Problem is that there is a whole list of these tools! At some point it says you get to have the required CPP version 14 when you install Visual Studio but even when you do that the same error message pops when installing geoip! You wonder who is not saying what!

Exactly, I've followed everything mentioned in that link but the issue is still there, somehow it was working before properly (don't know why because I didn't do anything before) and now after setup a new system it doesn't work.

Anyway, I think I give up working with pyreadstat library although it seems very easy to work with.

CODEX-Prog commented 4 years ago

Make sure you downloaded the Python 64 bit version for your windows. I also got the same error and i downloaded the Python 3.7.7 64 bit for Windows x86-64 executable installer. https://www.python.org/downloads/windows/ It solved the issue.

Anirudh15376 commented 4 years ago

The package is now distributed on conda forge (see https://github.com/conda-forge/implicit-feedstock), it can also be installed without needing a compiler on Linux, MacOS and Windows with,

conda install -c conda-forge implicit

You need to install the visual c++ build tools. The link in the error message seems like it's dead, but you can download them here: https://visualstudio.microsoft.com/visual-cpp-build-tools/

Note that while the error is calling for vc++ 14.0 - everything will work with newer versions of visual c++.

I tried it but the code is not working please tell any alternative

goshp commented 4 years ago

I was trying to install > python -m pip install kivy==1.11.1"

Then I got the below error

  ERROR: Failed building wheel for cython
ERROR: Failed to build one or more wheels
 Traceback (most recent call last):
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
     subprocess.check_call(cmd)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 364, in check_call
     raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['C:\\Users\\p\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\p\\AppData\\Local\\Temp\\tmpqdm8e4z4', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "C:\Users\p\AppData\Local\Temp\pip-install-rojmml82\kivy\setup.py", line 1073, in <module>
     setup(
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 160, in setup
     _install_setup_requires(attrs)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 155, in _install_setup_requires
     dist.fetch_build_eggs(dist.setup_requires)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 695, in fetch_build_eggs
     resolved_dists = pkg_resources.working_set.resolve(
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
     dist = best[req.key] = env.best_match(
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
     return self.obtain(req, installer)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
     return installer(requirement)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 754, in fetch_build_egg
     return fetch_build_egg(self, req)
   File "C:\Users\p\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
     raise DistutilsError(str(e))
 distutils.errors.DistutilsError: Command '['C:\\Users\\p\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\p\\AppData\\Local\\Temp\\tmpqdm8e4z4', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

adityaksagar14 commented 4 years ago

I installed buildtools but pip is not working....

olivehasan21 commented 4 years ago

Screenshot (149) how can i solve this problem while installing packages in pycharm??

KHBillel commented 4 years ago

https://www.microsoft.com/en-us/download/details.aspx?id=48159

EngineerSte commented 4 years ago

I had this error while installing pybullet. The solution I think for me was to uninstall Visual Studio Community 2019. Then reinstall it. I tried this a couple of times to no avail but for the time it worked I am pretty sure the only thing i did different was installing the Desktop Development with C++. You should see this under the Desktop and mobile tab in the Visual Studio Installer.

If you already have Visual Studio Community 2019 try modify the installation in the Visual Studio Installer app and add the package I mention above. This might also work but I have not tried.

heavyrick commented 4 years ago

I had this problem installing scrapydo, so i see this answer stackoverflow and it worked!

FDUZS commented 4 years ago

The official and correct way: Which Microsoft Visual C++ compiler to use with a specific Python version ?

onemedicine commented 4 years ago

pip install -U setuptools可以解决这个问题

After you install Microsoft Visual C++ Build Tools, it still reports an error after restarting, then you can try enter this command。

naveenbharadwaj19 commented 3 years ago

Setup is taking so long to install why ? I'm sure i have a good stable internet connection

installer

alexmahrou commented 3 years ago

Honestly the best way I've found to solve this is to install chocoloatey first: Open admin cmd prompt to install chocolatey @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Then install vcbuildtools with this command: choco install -y vcbuildtools -y -ia "/Full"

ramasurya-gajula commented 3 years ago

Hi Team, I am trying to install cx_oracle module using pip install in windows cmd. I have visual C++ 2015 above ,also used pip install -U setuptools, but still i get below error. Please help me resolve it. C:>python -m pip install cx_Oracle --upgrade Collecting cx_Oracle Using cached cx_Oracle-8.0.1.tar.gz (325 kB) Using legacy 'setup.py install' for cx-Oracle, since package 'wheel' is not installed. Installing collected packages: cx-Oracle Running setup.py install for cx-Oracle ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' cwd: C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\ Complete output (5 lines): running install running build running build_ext building 'cx_Oracle' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Command errored out with exit status 1: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' Check the logs for full command output.

FDUZS commented 3 years ago

Hi Team, I am trying to install cx_oracle module using pip install in windows cmd. I have visual C++ 2015 above ,also used pip install -U setuptools, but still i get below error. Please help me resolve it. C:>python -m pip install cx_Oracle --upgrade Collecting cx_Oracle Using cached cx_Oracle-8.0.1.tar.gz (325 kB) Using legacy 'setup.py install' for cx-Oracle, since package 'wheel' is not installed. Installing collected packages: cx-Oracle Running setup.py install for cx-Oracle ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' cwd: C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle Complete output (5 lines): running install running build running build_ext building 'cx_Oracle' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Command errored out with exit status 1: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' Check the logs for full command output.

…… Using legacy 'setup.py install' for cx-Oracle, since package 'wheel' is not installed. ……

So, try pip install wheel first, and maybe you need to check Which Microsoft Visual C++ compiler to use with a specific Python version ? out in detail.

ramasurya-gajula commented 3 years ago

Hi Team,

I am trying to install cx_oracle module using pip install in windows cmd. I have visual C++ 2015 above ,also used pip install -U setuptools, but still i get below error. Please help me resolve it. C:>python -m pip install cx_Oracle --upgrade Collecting cx_Oracle Using cached cx_Oracle-8.0.1.tar.gz (325 kB) Using legacy 'setup.py install' for cx-Oracle, since package 'wheel' is not installed. Installing collected packages: cx-Oracle Running setup.py install for cx-Oracle ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' cwd: C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle Complete output (5 lines): running install running build running build_ext building 'cx_Oracle' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ERROR: Command errored out with exit status 1: 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\cx-oracle\setup.py'"'"'; file='"'"'C:\Users\rgajula\AppData\Local\Temp\pip-install-09d099lq\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\rgajula\AppData\Local\Temp\pip-record-ldazvnul\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\rgajula\AppData\Local\Programs\Python\Python39\Include\cx-Oracle' Check the logs for full command output.

…… Using legacy 'setup.py install' for cx-Oracle, since package 'wheel' is not installed. ……

So, try pip install wheel first, and maybe you need to check Which Microsoft Visual C++ compiler to use with a specific Python version ? out in detail.

Thank you, I tried with python 3.7 and that works

Sayaka91 commented 3 years ago

i'm trying run make.sh from dcnv2 but it errors. the same error but all tips on this topic didn't work.

MeteorVE commented 3 years ago

My situation : Install vc++ 14.0 (just checked the win10 SDK), and it does not work. After checked the MSVC build tool, it works.

sailfish009 commented 3 years ago

Yes, to install win10 sdk and build tool (vc++ version don't care) works for me. Thanks MeteorVE.

Natanaelpvh commented 2 years ago

Estava acontecendo este mesmo problema comigo na ora de instalar o mysqlclient image mas quando eu usei o Visual Studio 2019 Developer Command Prompt, funcionou numa boa. :) image

GavinMoreYoung commented 2 years ago

收到,会尽快给您回复。

Natanaelpvh commented 2 years ago

Outra forma que encontrei na net foi instalar através do binário

pip install --only-binary :all: mysqlclient image

canalqb commented 2 years ago

[Solved] - Step for Step Microsoft Visual C++ 14.0 is required https://youtu.be/Y4QxGemfNrs

GavinMoreYoung commented 2 years ago

收到,会尽快给您回复。

canalqb commented 2 years ago

Hi, [Solved] - Step by Step https://youtu.be/Y4QxGemfNrs

anupamkayal commented 2 years ago

No need to install C++ build tools. C modules that speed up the execution of python code.Note that for one time build e.g. for CI/testing,on platforms that are not covered by one of the wheel packages provided on PyPI, it is substantially faster than a full source build to install without compiled (slower) version of any package with::

pip install [package name] --install-option="--no-[package file name]-compile"

for example Cython package : pip install Cython --install-option="--no-cython-compile"

GavinMoreYoung commented 2 years ago

收到,会尽快给您回复。

lmoliner commented 7 months ago

For all of you who are getting the Visual C++ error, follow this step-by-step tutorial here: https://www.youtube.com/watch?v=Y4QxGemfNrs

You will have to download Visual C++ 2015 as higher versions have bugs, then Visual Studio Build Tools 2017 from here: https://stackoverflow.com/questions/57795314/are-visual-studio-2017-build-tools-still-available-for-download

It worked flawlessly for me and I could finally install and use TaxonTableTools.

Good luck!