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!
Related
I am trying to run in my Mac a Python program which requires working with .avro binary files.
Despite trying to install it by using: pip install fastavro, I always get an error message on the terminal that ends with the following lines:
...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastavro
Failed to build fastavro
ERROR: Could not build wheels for fastavro, which is required to install pyproject.toml-based projects
I have updated conda to its latest version on my PC as well as updated pip as well.
Does anyone know how to solve this? I really need to run this program on Mac as soon as possible. For your information, I am able to install and use fastavro on Windows but not on Mac so this is likely to be a Mac-specific problem.
Thanks a lot
Since you are working in a conda environment, why not install it with conda? I often find installations via conda much more convenient since it takes care of all non-Python dependencies as well.
So try uninstalling the package first with pip: pip uninstall fastavro and then installing it via conda: conda install fastavro -c conda-forge.
In case you are unfamiliar with the -c conda-forge flag, it tells conda to look for the package on the conda-forge channel which has almost all packages that are not available via the standard channels.
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'm trying to install lektor into a new virtualenv using pyenv virtualenv. I have no problem making a new virtualenv with Python 3.7.0, but when I try to pip install lektor, I get a build failure with watchdog and the following error message:
pyenv: clang: command not found
The `clang' command exists in these Python versions:
anaconda3-5.0.0
error: command 'clang' failed with exit status 127
I understand that the anaconda3 version has clang, but I also have a version installed in /usr/bin. The output of which -a clang is:
$PYENV_ROOT/shims/clang
/usr/bin/clang
Can I manually set the shim to point to usr/bin? Or is there a different solution to this issue?
This is a rotten solution, but it does work. By taking the shim for clang and temporarily moving it (e.g., mv $PYENV_ROOT/shims/clang ~/Desktop), watchdog can be installed, then the clang shim can be moved back to the original location. A better option would be for pyenv to default to the system versions of programs if a shim doesn't point anywhere in a given environment…
Alternative solution
The pyenv plugin pyenv-which-ext takes care of this class of issues by checking for the existence of utilities in the normal $PATH after seeing that they aren't present in the current environment. It's a quick install via Homebrew, took care of all my issues.
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.
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.