implicit icon indicating copy to clipboard operation
implicit copied to clipboard

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

Open opokualbert opened this issue 8 years ago • 103 comments

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

opokualbert avatar Jan 26 '18 18:01 opokualbert

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++.

benfred avatar Jan 26 '18 18:01 benfred

Thanks @benfred

opokualbert avatar Jan 29 '18 14:01 opokualbert

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

rth avatar Feb 02 '18 08:02 rth

awesome! thanks @rth - having prebuilt binaries on conda-forge will really help out here.

To update - do I just need to submit a PR changing the sha256/version lines here https://github.com/conda-forge/implicit-feedstock/blob/master/recipe/meta.yaml#L2 ?

benfred avatar Feb 02 '18 23:02 benfred

To update - do I just need to submit a PR changing the sha256/version lines here

Yes, also just the next time one would need to reset the build number to 0, and if you want, add yourself to the recipe-maintainers section which will give you write permissions on that repo..

rth avatar Feb 03 '18 09:02 rth

done =) https://github.com/conda-forge/implicit-feedstock/pull/4

benfred avatar Feb 09 '18 18:02 benfred

Yes, Help Me

hadpro24 avatar Jun 30 '18 02:06 hadpro24

I meet this problem when I am trying to install wordcloud...

TSAIJK avatar Jul 13 '18 09:07 TSAIJK

Go to https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017

And download "Build Tools For Visual Studio" under "Tools for " Visual Studio"

Thank You Hope this helps. I had this problem and solved using this method

jaidenjohn avatar Jul 13 '18 16:07 jaidenjohn

@benfred - Thank you! It took me ages till your comment to get spacy installed!

adi07wad avatar Jul 23 '18 00:07 adi07wad

After I install the build-tools-for-visual-studio-2017 package is there anything else I need to do to make the compiler work with python? (I'm using anaconda)

JoeTorino avatar Jul 25 '18 08:07 JoeTorino

No. All is set. You can continue

Thankyou Jaiden John Bose

On Wed, Jul 25, 2018 at 1:48 PM JoeTorino [email protected] wrote:

After I install the build-tools-for-visual-studio-2017 package is there anything else I need to do to make the compiler work with python? (I'm using anaconda)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benfred/implicit/issues/76#issuecomment-407673546, or mute the thread https://github.com/notifications/unsubscribe-auth/Akjcm-XRjUuuVaKqqTDV-GnkGoHilbllks5uKCnlgaJpZM4RutL7 .

-- *The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. *

jaidenjohn avatar Jul 25 '18 08:07 jaidenjohn

hi

On Tue, Aug 14, 2018 at 8:29 PM jstar-ko [email protected] wrote:

hello

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/benfred/implicit/issues/76#issuecomment-412902350, or mute the thread https://github.com/notifications/unsubscribe-auth/Akjcm827geG8ck7Tf8V_tPx8Wz-wHUyoks5uQuXDgaJpZM4RutL7 .

-- *The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. *

jaidenjohn avatar Aug 14 '18 15:08 jaidenjohn

Hi,

I have installed Microsoft Visual C++ 2017 and get the below error. error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

I have updated setuptools as well and still does not work.

How do i avoid this?

Regards, Ren.

Mavericks334 avatar Aug 16 '18 19:08 Mavericks334

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/

temannin avatar Aug 22 '18 01:08 temannin

@tylerericmanning Yeah, it's correct. I used the same way.

Thank You

jaidenjohn avatar Aug 22 '18 07:08 jaidenjohn

@Mavericks334 The link you gave is not working. Please update the link.

Thank You

jaidenjohn avatar Aug 22 '18 07:08 jaidenjohn

@jaidenjohn https://visualstudio.microsoft.com/downloads/

There is the updated link. Scroll down to Build Tools for Visual Studio 2017

temannin avatar Aug 24 '18 12:08 temannin

@tylerericmanning et al -- I encountered the "error: Microsoft Visual C++ 14.0 is required" error when attempting to run

pip install mysqlclient

in support of a Django 2.x / MySQL 8 installation.

I encountered it first when running Python 3.7.0. I installed the build tools as part of a Visual Studio 2017 install. When I could not resolve the issue, I uninstalled both Visual Studio 2017 and Python 3.7.0.

I then installed Python 3.6.6 (on the off chance that 3.7 was the problem) and installed VS build tools 2017 (build 15.8.2), Visual C++ Build Tools workload only. Rechecking the install the following optional items are checked:

Windows 10 SDK (10.0.17134.0) Visual C++ tools for CMake Testing tools core features - Build Tools

When re-running pip install mysqlclient I encounter a new error:

 Failed building wheel for mysqlclient
  Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
  Running setup.py install for mysqlclient ... error
    Complete output from command c:\users\arwhyte\development\repos\github\arwhyte\django-tutorial-mysql\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\arwhyte\\AppData\\Local\\Temp\\pip-install-fi30oprf\\mysqlclient\\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\arwhyte\AppData\Local\Temp\pip-record-jbvsk1zo\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\arwhyte\development\repos\github\arwhyte\django-tutorial-mysql\venv\include\site\python3.6\mysqlclient:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    copying _mysql_exceptions.py -> build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\__init__.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\compat.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\connections.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\converters.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\cursors.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\release.py -> build\lib.win-amd64-3.6\MySQLdb
    copying MySQLdb\times.py -> build\lib.win-amd64-3.6\MySQLdb
    creating build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.6\MySQLdb\constants
    running build_ext
    building '_mysql' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,13,'final',0) -D__version__=1.3.13 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.6\Release\_mysql.obj /Zl
    _mysql.c
    _mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\arwhyte\development\repos\github\arwhyte\django-tutorial-mysql\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\arwhyte\\AppData\\Local\\Temp\\pip-install-fi30oprf\\mysqlclient\\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\arwhyte\AppData\Local\Temp\pip-record-jbvsk1zo\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\arwhyte\development\repos\github\arwhyte\django-tutorial-mysql\venv\include\site\python3.6\mysqlclient" failed with error code 1 in C:\Users\arwhyte\AppData\Local\Temp\pip-install-fi30oprf\mysqlclient\

I'm new to Windows 10 (Mac guy) and have not found any hints on line on how to fix the missing file/directly issues:

 _mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Any suggestions on how to resolve this would be appreciated.

arwhyte avatar Sep 02 '18 01:09 arwhyte

我想用pip安装rasa_core出现这个错误怎么办(error:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools)

WangHuiYa avatar Sep 18 '18 08:09 WangHuiYa