Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl.exe failed with exit status 2/-1073741701 #148

Closed
Jarmahent opened this issue Jan 27, 2018 · 65 comments
Closed

cl.exe failed with exit status 2/-1073741701 #148

Jarmahent opened this issue Jan 27, 2018 · 65 comments

Comments

@Jarmahent
Copy link

When trying to install python-binance using pip I get this error:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 "-Ic:\program files\python37\include" "-Ic:\program files\python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcsrc/twisted/test/raiser.c /Fobuild\temp.win-amd64-3.7\Release\src/twisted/test/raiser.obj error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status -1073741701

Command ""c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Kevin\\AppData\\Local\\Temp\\pip-build-vbhp1s_d\\Twisted\\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\Kevin\AppData\Local\Temp\pip-yys0av0d-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Kevin\AppData\Local\Temp\pip-build-vbhp1s_d\Twisted\

@yusail
Copy link

yusail commented Jan 27, 2018

I have met this problem,too. I can't fix it. So, I choose to use Ubuntu instead of Windows @Jarmahent

@Jarmahent
Copy link
Author

@yusail I have windows 10 on my laptop and I've successfully installed it there. I dont know exactly why.

@jyang0110
Copy link

@Jarmahent I am having this problem too. Do you know what did you change to fix?

@tropo84
Copy link

tropo84 commented Feb 5, 2018

https://python-binance.readthedocs.io/en/latest/overview.html#installation

If you see errors building Twisted indication Microsoft Visual C++ is required you may need to install the Visual C++ Build Tools

@sammchardy
Copy link
Owner

@Jarmahent are you still having issues or did the info provided by @tropo84 resolve it?

@evilying
Copy link

I am also being bothered with these issues. Install the newest VC build tools is not helpful.

@Jarmahent
Copy link
Author

@sammchardy No installing the tools did not fix the issue.

@maijaz01
Copy link

maijaz01 commented Mar 9, 2018

I am also having the same issue is any one know about this??

@sedaradji
Copy link

sedaradji commented Mar 21, 2018

Refer to this link:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder :
python -m pip install C:\Users\%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

You can then try to install python-binance again usng pip

@dnyati
Copy link

dnyati commented Mar 27, 2018

Any one able to resolve issue. I am facing same issue.

@sedaradji
Copy link

I was able to solve it
See my previous comment.

@citi100
Copy link

citi100 commented Mar 28, 2018

Thanks @Saledddar , i got the same issue. Using libs from lfd.uci.edu really helped.

@chysam
Copy link

chysam commented Apr 4, 2018

Thanks @Saledddar . Great job

@Jarmahent
Copy link
Author

@Saledddar Seems to have the issue fixed, closing issue.

@Essbuisness
Copy link

it worked thank yo

@Meurth
Copy link

Meurth commented Jun 15, 2018

Saledddar, you didn't solve the issue at all, telling people to just download and install it from somewhere else with another program is not solving an issue at all. I'm trying to install the neopixels package, it's not on that page you linked that lists python packages, so I've still got the exact same problem.

@danielsjf
Copy link

It works for Cartopy as well, but I agree that this is not a solution. It should work automatically.

@Jarmahent Jarmahent reopened this Jun 17, 2018
@sedaradji
Copy link

sedaradji commented Jun 18, 2018

Hello guys
The only real solution to this is within the traceback itself, visual studio c++ compiler must be installed on the machine.
The reason why this issue is not as common on linux machine is that most distributions come with a c++ compiler.

As far as i know, you have to install visual studio in order to have the compiler (no other way around that), here is a link for a lightweight VS installation:
https://blogs.msdn.microsoft.com/vcblog/2016/08/22/the-lightweight-visual-studio-15-installer/

I see some people arguing that using a precompiled whl is not a solution, for most popular packages it is, but for less known packages,you must have VS c++ compiler installed.

There is no automatic solution.

@danielsjf
Copy link

This might be a stupid question, but why is there no compiler packaged with python or a dedicated package if this happens so often? Visual studio is quite big as an external dependency.

@sedaradji
Copy link

Some python packages have parts written in c or c++, this is very common for packages where better performance is needed since python is interpreted and code in python is less efficient than a code that is written in c or c++.

As i said, python packages are delivered as source code, most developers sadly do not distribute their packages as binaries(.whl files that you will find in the link i shared above).

@Jarmahent
Copy link
Author

Only workaround is to get Visual Studio C++ compiler, no real "Automatic solution".

@donholloway
Copy link

I often use the precompiled wheels. I have visual studio and c++ build tools installed, still getting this error for the Pycrypto library. Unfortunately, there isn't a precompiled version available. I'm going to try adding an older c++ build tool.

@Bohooslav
Copy link

Bohooslav commented Jun 24, 2018

I download VS and Twisted-18.4.0-cp36-cp36m-win32.whl but it's don't help me!
There are my error:

C:\Program Files\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.
26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program F
iles\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\ATLMFC\inc
lude" "-IC:\Program Files\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\1
4.14.26428\include" /Tcvendor/hiredis/read.c /Fobuild\temp.win32-3.6\vendor/hire
dis/read.obj
   read.c
   c1: fatal error C1083: ?? г¤ ?вбп RвЄалвм д c< ЁбвRз-ЁЄ: vendor/hiredis/read
.c: No such file or directory,
   error: command 'C:\\Program Files\\Microsoft Visual Studio\\2017\\Community\
\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit statu
s 2
   ----------------------------------------
Command "c:\users\timoniann\appdata\local\programs\python\python36-32\python.exe
-u -c "import setuptools, tokenize;__file__='C:\\Users\\TIMONIANN\\AppData\\Loca
l\\Temp\\pip-install-k5dhv2iy\\hiredis\\setup.py';f=getattr(tokenize, 'open', op
en)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _
_file__, 'exec'))" install --record C:\Users\TIMONI~1\AppData\Local\Temp\pip-rec
ord-9h2c27ha\install-record.txt --single-version-externally-managed --compile" f
ailed with error code 1 in C:\Users\TIMONI~1\AppData\Local\Temp\pip-install-k5dh
v2iy\hiredis\

@robert611
Copy link

Hi, i have similar problem, i have been looking by hours how to solve it but nothing help me, I tried this Twisted package, and i updated Visual studio but still nothing. Somebody have some ideas?

Command "c:\users\medion\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Medion\AppData\Local\Temp\pip-install-fwn49w4h\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\Medion\AppData\Local\Temp\pip-record-670kughu\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-fwn49w4h\mysqlclient\

@sedaradji
Copy link

Have you both downloaded the binaries and installed them using pip?
See my first comment

@robert611
Copy link

Yes, I already had install that.

@Shanzaay
Copy link

Hello guys
The only real solution to this is within the traceback itself, visual studio c++ compiler must be installed on the machine.
The reason why this issue is not as common on linux machine is that most distributions come with a c++ compiler.

As far as i know, you have to install visual studio in order to have the compiler (no other way around that), here is a link for a lightweight VS installation:
https://blogs.msdn.microsoft.com/vcblog/2016/08/22/the-lightweight-visual-studio-15-installer/

I see some people arguing that using a precompiled whl is not a solution, for most popular packages it is, but for less known packages,you must have VS c++ compiler installed.

There is no automatic solution.

@Saledddar how do I know which package I am supposed to install... I am getting confused. Can you guide me a bit, please.
I am using python 3.7.3 though.

@Shanzaay
Copy link

@Saledddar which packages we are supposed to download from here?
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
I mean there is twisted, typed_ast, Uciwebauth etc.
Kindly guide me a bit about this.

@sedaradji
Copy link

sedaradji commented Jun 15, 2019

@Shanzaay It depends on your python installation, if it is 32 bit:
Twisted‑19.2.1‑cp37‑cp37m‑win32.whl
or for 64 bit:
Twisted‑19.2.1‑cp37‑cp37m‑win_amd64.whl
if you don't know what version of python you have (32 or 64), check sys.maxsize!

@KukshaBird
Copy link

Thank you, @Saledddar, it's works.
Why they told about VS tools at all?=)

@Sprintsouille
Copy link

Sprintsouille commented Jun 29, 2019

@Saledddar Hello, I'm sorry but I still have a problem even after following your solution:https://github.com/sammchardy/python-binance/issues/148#issuecomment-374853521

Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32

I installed:

  • Build Tools for Visual Studio 2017 (version 15.9)
  • Twisted‑19.2.1‑cp36‑cp36m‑win_amd64.whl
(mdph) λ pip install pygraphviz==1.5                                                                                                                                                                               
Collecting pygraphviz==1.5                                                                                                                                                                                         
  Using cached https://files.pythonhosted.org/packages/7e/b1/d6d849ddaf6f11036f9980d433f383d4c13d1ebcfc3cd09bc845bda7e433/pygraphviz-1.5.zip                                                                       
Building wheels for collected packages: pygraphviz                                                                                                                                                                 
  Building wheel for pygraphviz (setup.py) ... error                                                                                                                                                               
  ERROR: Complete output from command 'c:\users\fpe\documents\projets\envs\mdph\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\fpe\\AppData\\Local\\Temp\\pip-install-tpjrpos7\\py
graphviz\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\f
pe\AppData\Local\Temp\pip-wheel-41wt2uoz' --python-tag cp36:                                                                                                                                                       
  ERROR: running bdist_wheel                                                                                                                                                                                       
  running build                                                                                                                                                                                                    
  running build_py                                                                                                                                                                                                 
  creating build                                                                                                                                                                                                   
  creating build\lib.win-amd64-3.6                                                                                                                                                                                 
  creating build\lib.win-amd64-3.6\pygraphviz                                                                                                                                                                      
  copying pygraphviz\agraph.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                               
  copying pygraphviz\graphviz.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                             
  copying pygraphviz\release.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                              
  copying pygraphviz\version.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                              
  copying pygraphviz\__init__.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                             
  creating build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                                                
  copying pygraphviz\tests\test.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                     
  copying pygraphviz\tests\test_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                          
  copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                  
  copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                               
  copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                             
  copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                     
  copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                               
  copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                
  copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                              
  copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                     
  copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                           
  copying pygraphviz\tests\test_setup.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                               
  copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                              
  copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                            
  copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                             
  copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                 
  running egg_info                                                                                                                                                                                                 
  writing pygraphviz.egg-info\PKG-INFO                                                                                                                                                                             
  writing dependency_links to pygraphviz.egg-info\dependency_links.txt                                                                                                                                             
  writing top-level names to pygraphviz.egg-info\top_level.txt                                                                                                                                                     
  reading manifest file 'pygraphviz.egg-info\SOURCES.txt'                                                                                                                                                          
  reading manifest template 'MANIFEST.in'                                                                                                                                                                          
  warning: no files found matching '*.png' under directory 'doc'                                                                                                                                                   
  warning: no files found matching '*.html' under directory 'doc'                                                                                                                                                  
  warning: no files found matching '*.txt' under directory 'doc'                                                                                                                                                   
  warning: no files found matching '*.css' under directory 'doc'                                                                                                                                                   
  warning: no previously-included files matching '*~' found anywhere in distribution                                                                                                                               
  warning: no previously-included files matching '*.pyc' found anywhere in distribution                                                                                                                            
  warning: no previously-included files matching '.svn' found anywhere in distribution                                                                                                                             
  no previously-included directories found matching 'doc\build'                                                                                                                                                    
  writing manifest file 'pygraphviz.egg-info\SOURCES.txt'                                                                                                                                                          
  copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                              
  copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                         
  running build_ext                                                                                                                                                                                                
  building 'pygraphviz._graphviz' extension                                                                                                                                                                        
  creating build\temp.win-amd64-3.6                                                                                                                                                                                
  creating build\temp.win-amd64-3.6\Release                                                                                                                                                                        
  creating build\temp.win-amd64-3.6\Release\pygraphviz                                                                                                                                                             
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\fpe\appdata\local\programs\python\python36\include
 -Ic:\users\fpe\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /Tcpygraphviz/graphviz_wrap.c /Fobuild\temp.win
-amd64-3.6\Release\pygraphviz/graphviz_wrap.obj                                                                                                                                                                    
  graphviz_wrap.c                                                                                                                                                                                                  
  c:\users\fpe\appdata\local\programs\python\python36\include\pyconfig.h(59): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'io.h'ÿ: No such file or directory                                       
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2                                           
  ----------------------------------------                                                                                                                                                                         
  ERROR: Failed building wheel for pygraphviz                                                                                                                                                                      
  Running setup.py clean for pygraphviz                                                                                                                                                                            
Failed to build pygraphviz                                                                                                                                                                                         
Installing collected packages: pygraphviz                                                                                                                                                                          
  Running setup.py install for pygraphviz ... error                                                                                                                                                                
    ERROR: Complete output from command 'c:\users\fpe\documents\projets\envs\mdph\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\fpe\\AppData\\Local\\Temp\\pip-install-tpjrpos7\\
pygraphviz\\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:\Use
rs\fpe\AppData\Local\Temp\pip-record-t851dmkw\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\fpe\documents\projets\envs\mdph\include\site\python3.6\pygraphviz':    
    ERROR: running install                                                                                                                                                                                         
    include_dirs=None                                                                                                                                                                                              
    library_dirs=None                                                                                                                                                                                              
    running build                                                                                                                                                                                                  
    running build_py                                                                                                                                                                                               
    creating build                                                                                                                                                                                                 
    creating build\lib.win-amd64-3.6                                                                                                                                                                               
    creating build\lib.win-amd64-3.6\pygraphviz                                                                                                                                                                    
    copying pygraphviz\agraph.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                             
    copying pygraphviz\graphviz.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                           
    copying pygraphviz\release.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                            
    copying pygraphviz\version.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                            
    copying pygraphviz\__init__.py -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                           
    creating build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                                              
    copying pygraphviz\tests\test.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                                   
    copying pygraphviz\tests\test_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                        
    copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                
    copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                             
    copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                           
    copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                   
    copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                             
    copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                              
    copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                            
    copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                   
    copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                         
    copying pygraphviz\tests\test_setup.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                             
    copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                            
    copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                          
    copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                           
    copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-3.6\pygraphviz\tests                                                                                                                               
    running egg_info                                                                                                                                                                                               
    writing pygraphviz.egg-info\PKG-INFO                                                                                                                                                                           
    writing dependency_links to pygraphviz.egg-info\dependency_links.txt                                                                                                                                           
    writing top-level names to pygraphviz.egg-info\top_level.txt                                                                                                                                                   
    reading manifest file 'pygraphviz.egg-info\SOURCES.txt'                                                                                                                                                        
    reading manifest template 'MANIFEST.in'                                                                                                                                                                        
    warning: no files found matching '*.png' under directory 'doc'                                                                                                                                                 
    warning: no files found matching '*.html' under directory 'doc'                                                                                                                                                
    warning: no files found matching '*.txt' under directory 'doc'                                                                                                                                                 
    warning: no files found matching '*.css' under directory 'doc'                                                                                                                                                 
    warning: no previously-included files matching '*~' found anywhere in distribution                                                                                                                             
    warning: no previously-included files matching '*.pyc' found anywhere in distribution                                                                                                                          
    warning: no previously-included files matching '.svn' found anywhere in distribution                                                                                                                           
    no previously-included directories found matching 'doc\build'                                                                                                                                                  
    writing manifest file 'pygraphviz.egg-info\SOURCES.txt'                                                                                                                                                        
    copying pygraphviz\graphviz.i -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                            
    copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-3.6\pygraphviz                                                                                                                                       
    running build_ext                                                                                                                                                                                              
    building 'pygraphviz._graphviz' extension                                                                                                                                                                      
    creating build\temp.win-amd64-3.6                                                                                                                                                                              
    creating build\temp.win-amd64-3.6\Release                                                                                                                                                                      
    creating build\temp.win-amd64-3.6\Release\pygraphviz                                                                                                                                                           
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\fpe\appdata\local\programs\python\python36\inclu
de -Ic:\users\fpe\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /Tcpygraphviz/graphviz_wrap.c /Fobuild\temp.w
in-amd64-3.6\Release\pygraphviz/graphviz_wrap.obj                                                                                                                                                                  
    graphviz_wrap.c                                                                                                                                                                                                
    c:\users\fpe\appdata\local\programs\python\python36\include\pyconfig.h(59): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'io.h'ÿ: No such file or directory                                     
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2                                         
    ----------------------------------------                                                                                                                                                                       
ERROR: Command "'c:\users\fpe\documents\projets\envs\mdph\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\fpe\\AppData\\Local\\Temp\\pip-install-tpjrpos7\\pygraphviz\\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\fpe\AppData\Local\Tem
p\pip-record-t851dmkw\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\fpe\documents\projets\envs\mdph\include\site\python3.6\pygraphviz'" failed with error code 1 in
 C:\Users\fpe\AppData\Local\Temp\pip-install-tpjrpos7\pygraphviz\                                                                                                                                                  <

Refer to this link:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder :
python -m pip install C:\Users%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

You can then try to install python-binance again usng pip

@gloriamacia
Copy link

I was getting this error "invalid numeric argument '/Wno-cpp' still after the steps above
and this post helped me cocodataset/cocoapi#51

@echasse
Copy link

echasse commented Dec 28, 2019

Hello guys
I installed Visual C++ 2019 version and issue was resolved

@Afr33t
Copy link

Afr33t commented Feb 19, 2020

Refer to this link:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder :
python -m pip install C:\Users%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

You can then try to install python-binance again usng pip

ERROR: Twisted-17.9.0-cp36-cp36m-win32.whl is not a supported wheel on this platform.

@toiene
Copy link

toiene commented Mar 13, 2020

I am going to install the pymrmr and I have already met this error: Microsoft Visual C++ 14.0 is required. so I have downloaded the VC build tools2019. it works in the vc cmd that I have successfully install the pymrmr in vc cmd. but when I come to anaconda prompt it shows the new error as this link show: cl.exe failed with exit status 2
can someone just tell me how it happened and what I should do ? I have confused about it for the whole day!! appreciate``

@adm108
Copy link

adm108 commented May 7, 2020

Try to use Python 3.7 instead 3.8.
I had the same problem and it was my nightmare for 2 days but installing Python 3.7.7 solved it.
Maybe there is some problem with compatibility MVSC C++ compiler with Python 3.8.

@AyazAI
Copy link

AyazAI commented Jun 4, 2020

If you have NodeJS installed you can also try:

npm install --global --production windows-build-tools

This is the ultimate solution

@ghost
Copy link

ghost commented Jun 6, 2020

Just run this command and thank me later
pip install https://pypi.python.org/packages/18/85/eb7af503356e933061bf1220033c3a85bad0dbc5035dfd9a97f1e900dfcb/Twisted-16.2.0.tar.bz2#md5=8b35a88d5f1a4bfd762a008968fddabf

It worked for me. On Windows 10, open terminal, paste it, finish.

@tag23
Copy link

tag23 commented Jun 22, 2020

@Saledddar thank you a lot

@HMaliniV
Copy link

HMaliniV commented Jul 7, 2020

I get the below error while installing pycrypto. I tried using this but it didn't work. Please let me know what should be done. I use a 64bit windows machine and my python version is 3.7.8
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\deepa\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\deepa\AppData\Local\Temp\pip-install-5nx2k163\pycrypto\setup.py'"'"'; file='"'"'C:\Users\deepa\AppData\Local\Temp\pip-install-5nx2k163\pycrypto\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\deepa\AppData\Local\Temp\pip-record-2d43z5g1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deepa\appdata\local\programs\python\python37\Include\pycrypto' Check the logs for full command output.

Just run this command and thank me later
pip install https://pypi.python.org/packages/18/85/eb7af503356e933061bf1220033c3a85bad0dbc5035dfd9a97f1e900dfcb/Twisted-16.2.0.tar.bz2#md5=8b35a88d5f1a4bfd762a008968fddabf

It worked for me. On Windows 10, open terminal, paste it, finish.

@muhammad-obaidullah
Copy link

Issue Resolved:
Open Anaconda-Prompt3:

Write: pip install pycocotools-windows

Python 3.7.6
Anaconda3 (64-bit)

@HMaliniV
Copy link

HMaliniV commented Aug 3, 2020

I get the below error while installing pycrypto. I tried using this but it didn't work. Please let me know what should be done. I use a 64bit windows machine and my python version is 3.7.8
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit status 2

ERROR: Command errored out with exit status 1: 'c:\users\deepa\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\deepa\AppData\Local\Temp\pip-install-5nx2k163\pycrypto\setup.py'"'"'; file='"'"'C:\Users\deepa\AppData\Local\Temp\pip-install-5nx2k163\pycrypto\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\deepa\AppData\Local\Temp\pip-record-2d43z5g1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deepa\appdata\local\programs\python\python37\Include\pycrypto' Check the logs for full command output.

Just run this command and thank me later
pip install https://pypi.python.org/packages/18/85/eb7af503356e933061bf1220033c3a85bad0dbc5035dfd9a97f1e900dfcb/Twisted-16.2.0.tar.bz2#md5=8b35a88d5f1a4bfd762a008968fddabf

It worked for me. On Windows 10, open terminal, paste it, finish.

Issue resolved after I uninstalled Python and reinstalled the same.

@AdityaSadaphule
Copy link

Refer to this link:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder :
python -m pip install C:\Users%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

You can then try to install python-binance again usng pip

i'm facing the same iusse but it's while installing pyaudio do have a solution??

@gunarakulangunaretnam
Copy link

Reinstalling visual studio 2015 helped me

@SrdjanStevanetic
Copy link

SrdjanStevanetic commented Nov 24, 2020

Guys, I have found that sticking to the particular version of the package installed can be a problem, try just the latest version or install without a specific tag, e.g. pip install pygraphviz

@devjeff
Copy link

devjeff commented Nov 24, 2020

Concerning the error that occurs when the Visual Studio Build Tools are installed: My problem was that I had a 32-bit version of Python installed. After I switched to the 64 bit version, the dependency could be installed without problems.

@GwynethKardelisTR
Copy link

I was able to get past this error but installing and using an older version of python. I was using 3.9 but it worked when I switched to python 3.7. I do have Microsoft Build Tools installed, not sure if that will make a difference (http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe. ).

@amitrl
Copy link

amitrl commented Feb 19, 2021

This comment from @Saledddar worked for me.

Refer to this link:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder :
python -m pip install C:\Users%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

@CloneHub94
Copy link

I keep getting an error when building pycocotools for Tenorflow:

image

Installing the wheel doesn't work for me. It still gives me the same error

@jiajunhua
Copy link

D:\Anaconda\lib\site-packages\torch\include\c10/util/variant.h(1542): note: see reference to function template instantiation 'auto c10::detail_::visitation::base::make_fmatrix<Visitor&&,c10::detail_::basec10::detail_::Trait::TriviallyAvailable,torch::enumtype::kSum,torch::enumtype::kMean,torch::enumtype::kMax&>(void)' being compiled
with
[
Visitor=c10::detail_::visitation::variant::value_visitortorch::enumtype::_compute_enum_name
]
D:\Anaconda\lib\site-packages\torch\include\c10/util/variant.h(1618): note: see reference to function template instantiation 'decltype(auto) c10::detail_::visitation::alt::visit_alt<T,c10::detail_::impltorch::enumtype::kSum,torch::enumtype::kMean,torch::enumtype::kMax&>(Visitor &&,c10::detail_::impltorch::enumtype::kSum,torch::enumtype::kMean,torch::enumtype::kMax &)' being compiled
with
[
T=c10::detail_::visitation::variant::value_visitortorch::enumtype::_compute_enum_name,
Visitor=c10::detail_::visitation::variant::value_visitortorch::enumtype::_compute_enum_name
]
D:\Anaconda\lib\site-packages\torch\include\c10/util/variant.h(1634): note: see reference to function template instantiation 'decltype(auto) c10::detail_::visitation::variant::visit_alt<c10::detail_::visitation::variant::value_visitor,V&>(c10::detail_::visitation::variant::value_visitor &&,V &)' being compiled
with
[
Visitor=torch::enumtype::compute_enum_name,
V=torch::nn::EmbeddingBagMode
]
D:\Anaconda\lib\site-packages\torch\include\c10/util/variant.h(2748): note: see reference to function template instantiation 'decltype(auto) c10::detail
::visitation::variant::visit_value<T,V&>(Visitor &&,V &)' being compiled
with
[
T=torch::enumtype::_compute_enum_name,
V=torch::nn::EmbeddingBagMode,
Visitor=torch::enumtype::_compute_enum_name
]
D:\Anaconda\lib\site-packages\torch\include\torch\csrc\api\include\torch/enum.h(164): note: see reference to function template instantiation 'decltype(auto) c10::visittorch::enumtype::_compute_enum_name,V&(Visitor &&,V &)' being compiled
with
[
V=torch::nn::EmbeddingBagMode,
Visitor=torch::enumtype::_compute_enum_name
]
D:\Anaconda\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/functional/embedding.h(115): note: see reference to function template instantiation 'std::string torch::enumtype::get_enum_nametorch::nn::EmbeddingBagMode(V)' being compiled
with
[
V=torch::nn::EmbeddingBagMode
]
D:\Anaconda\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(624): note: see reference to class template instantiation 'c10::ArrayRefc10::IValue' being compiled
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

I don't know how to solve it? Thanks in advance.

@Nanou21
Copy link

Nanou21 commented May 30, 2023

Refer to this link: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

Download the right whl package for you python version(if you have trouble knowing what version of python you have, just lunch the interpreter ), in my case it was python 3.6 32 bit

use pip to install the package, assuming that the file is in downloads folder : python -m pip install C:\Users%USER%\Downloads\Twisted-17.9.0-cp36-cp36m-win32.whl

You can then try to install python-binance again usng pip

This link is not opening I wonder why

@ruanyanghui
Copy link

I've resolved the issue. I switched from Python 3.9 to 3.6 and the error is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests