i'm having trouble running easy_install scrapy and got the following error:
**cc1.exe: error: unrecognized command line option '-mno -cygwin'
error: setup script exited with error: command 'gcc' failed with exit status 1**
i'm running python 2.7 on windows 32 bit. i installed mingw, libxslt, liblxml2. what's going on there? Thanks!
The solution is to remove all instances of -mno-cygwin from C:\Python27\Lib\distutils\cygwinccompiler.py, re-run easy_install.
I had this same problem and I found the answer here:
http://www.techques.com/question/1-6034390/Compiling-with-cython-and-mingw-produces-gcc:-error:-unrecognized-command-line-option-'-mno-cygwin'
I had GCC version 4.6.2 installed which did not support the -mno-cygwin option.
Related
I'm working on setting up a project (from someone else), which is currently not able to be installed. Within the root folder I'm trying to run pip install ./, but the installation gives me the following error.
File "C:\Users\ruben\miniconda3\envs\deltaconv\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for deltaconv
Failed to build deltaconv
ERROR: Could not build wheels for deltaconv which use PEP 517 and cannot be installed directly
It seems like the setup.py file is unable to locate cmake. However, when running this in the miniconda promt, I get:
>cmake --version
cmake version 3.24.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
And when running it in a windows command prompt I get:
>cmake --version
cmake version 3.24.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
I've installed it both on the windows machine and in python and I'm a bit stuck on why the python subprocess is unable to execute cmake --version.
Hopefully someone can help me with this!
I am trying to install TA-Lib with the following command in the terminal.
pip install TA-Lib
Unfortunatley, I got the following error message:
Building wheel for TA-Lib (setup.py) ... error
ERROR: Command errored out with exit status 1......
Many thanks in advance for your help !
Follow TA-Lib author "mrjbq7"'s full instructions here: https://github.com/mrjbq7/ta-lib
You'll first download the built file from author, download and install VS community for the x64 command prompt tool, rebuild library, then finally install TA-Lib.
Download ta-lib-0.4.0-msvc.zip from http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib
TA-Lib is a 32 bit release and you might be running on a 64-bit python. So follow the instructions to build TA-Lib on 64-bit and rebuild the library.
Download and Install Visual Studio Community 20XX
Remember to Select [Visual C++] Feature
From Windows Start Menu, Start [VS20XX x64 Native Tools Command Prompt]
Go to directory: C:\ta-lib\c\make\cdr\win32\msvc
Build the Library in command prompt with this command: nmake
Now try installing again: pip install TA-Lib
you may also find other posts of similar problems here: Python TA-Lib install problems
I downloaded Yaws 1.98, but when executing ./configure && make if fails with the message provided below:
gcc -c -g -O2 -I/usr/include/security -m64 -I/usr/include/pam -DHAVE_SENDFILE -I"/usr/local/lib/erlang/usr/include" -I/usr/include/pam/ epam.c
epam.c:2:10: fatal error: 'pam_appl.h' file not found
#include <pam_appl.h>
^
1 error generated.
make[1]: *** [epam.o] Error 1
make: *** [all] Error 1
Any suggestions on how to solve this? is there any other way I can run the latest version of Yaws on Mac OS X 10.9?
The pam_appl.h include file is normally found in /usr/include/security on OS X 10.6 and higher, and that's installed as part of the Command Line Tools installation. Normally you would run sudo xcode-select --install from your Terminal command line to install the command line tools, but that sometimes fails — see Failed to install command line tools on OSX Mavericks for details and workarounds. Of course, you can always download the command line tools install package from Apple's Developer site (registration required).
Since your error message shows you already have gcc, be aware that it's also installed as part of the command line tools installation.
This shows that pam development library is not available in you mac OS for YAWS to get compiled successfully.
I do not have experience in installing pam-devel in mac but on unix based machine yum install pam-devel would help me installing. Please check if something helps here http://www.webmin.com/udownload.html
I'm trying to install Scrapy in cygwin, and I've finally got easy_install working but it keeps giving this error message: Setup script exited with error:
'gcc' failed with exit status 1
I'm using gcc version 3.4.4. Any ideas, I'm at a loss for what to try next? Before it gives this error message it print out thousands of line about OpenSSl, I'm not sure if that means the problem is in OpenSSL or not.
Finally found the root problem was in pyOpenSSL and is addressed here easy_install PyOpenSSL error.
Update: For other gcc errors that I later got I found that installing gcc4 from the cygwin setup fixed it.
I use MacOS 10.7.3 and XCode 4.3. In order to install Scrapy, I have followed the instructions here: http://doc.scrapy.org/en/0.14/intro/install.html#download-and-install-an-official-release .
But unfortunately the command python setup.py install failed:
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
Did you actually run the Xcode installer, found in /Applications? Getting it via the MacAppStore doesn't install it automatically.