How can I properly install the C compiler to install the Python package for Windows?

I believe that my C compiler is not installed. I am trying to install some Python 2.7 packages on my Windows 8 computer. I keep getting the following error:

"RuntimeError: Broken toolchain: unable to link simple C. program."

Python is installed correctly and works fine. I use the "virutalenv" package and work in a virtual environment. Then I tried installing Cygwin, MinGW, and MS Visual Studios 2012, none of which seem to work in virtualenv. I'm not sure what I'm doing wrong, any help would be great.

Thanks Jimmy

+4
source share
2 answers

I have the same problem, despite installing gcc and mingw-gcc under CygWin, for scipy recommendations . But this may lead you to the following track:

setup-x86_64.exe -q -n -N -d -R 'C:\cygwin64' -s 'http://www.gtlib.gatech.edu/x86_64/release/' -l 'C:\Users\$USER\Downloads' -P git,wget,curl,python,gcc-core,mingw-gcc 

In the end, I just had to mousily install all the Cygwin packages that appeared in the "gcc" search. I chose only those that belong to the "dev" category, not "debug" and pip install numpy (which compiles and bundles many C packages) worked fine. Here is my list of Cygwin packages .

I am in Windows 7 (when I cannot avoid it), but not Win 8.

0
source

I installed the following packages and it seems to work:

  • gcc-core
  • make
  • python develop

Hope this works for you too.

PS: Used apt-cyg to install. https://github.com/transcode-open/apt-cyg

0
source

Source: https://habr.com/ru/post/1485523/


All Articles