Coder Social home page Coder Social logo

Comments (3)

Alex-Kopylov avatar Alex-Kopylov commented on June 11, 2024

I had the same issue and resolved it by:

  1. pip3 install --upgrade pip
  2. pip install --upgrade pip setuptools wheel
  3. Upgrading Microsoft Visual C++ (14.0 or greater)

from hdmedians.

tharvipop avatar tharvipop commented on June 11, 2024

Getting a similar error when trying to download biocore/evident. Error was leading to hdmedians so tried to update to 0.14.2 but got this following error:

  Building wheel for hdmedians (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/bin/python3.6 /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/tmpzi9vtm5j
       cwd: /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-install-egsrakg7/hdmedians_f0e2821505e44df2817a8c1cd462123d
  Complete output (33 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.6
  creating build/lib.macosx-10.9-x86_64-3.6/hdmedians
  copying hdmedians/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/hdmedians
  copying hdmedians/medoid.py -> build/lib.macosx-10.9-x86_64-3.6/hdmedians
  creating build/lib.macosx-10.9-x86_64-3.6/hdmedians/tests
  copying hdmedians/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/hdmedians/tests
  copying hdmedians/tests/test_geomedian.py -> build/lib.macosx-10.9-x86_64-3.6/hdmedians/tests
  copying hdmedians/tests/test_medoid.py -> build/lib.macosx-10.9-x86_64-3.6/hdmedians/tests
  running build_ext
  cythoning hdmedians/geomedian.pyx to hdmedians/geomedian.c
  building 'hdmedians.geomedian' extension
  creating build/temp.macosx-10.9-x86_64-3.6
  creating build/temp.macosx-10.9-x86_64-3.6/hdmedians
  x86_64-apple-darwin13.4.0-clang -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/include -I/private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/numpy/core/include -I/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/include/python3.6m -c hdmedians/geomedian.c -o build/temp.macosx-10.9-x86_64-3.6/hdmedians/geomedian.o
  In file included from hdmedians/geomedian.c:747:
  In file included from /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4:
  In file included from /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
  In file included from /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:
  /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
  #warning "Using deprecated NumPy API, disable it by " \
   ^
  1 warning generated.
  x86_64-apple-darwin13.4.0-clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -L/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -L/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -Wl,-export_dynamic -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -L/Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/lib -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/atharvakulkarni/miniforge3/envs/qiime2-2020.6-v2/include -arch x86_64 build/temp.macosx-10.9-x86_64-3.6/hdmedians/geomedian.o -o build/lib.macosx-10.9-x86_64-3.6/hdmedians/geomedian.cpython-36m-darwin.so
  ld: warning: -pie being ignored. It is only used when linking a main executable
  ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libSystem.tbd' for architecture x86_64
  clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
  /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-build-env-ty4dq1si/overlay/lib/python3.6/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/hg/mjm9vbvs4zvbh9qc0q2jxsdw0000gn/T/pip-install-egsrakg7/hdmedians_f0e2821505e44df2817a8c1cd462123d/hdmedians/geomedian.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for hdmedians
Failed to build hdmedians
ERROR: Could not build wheels for hdmedians, which is required to install pyproject.toml-based projects

For reference this is a m1 macbook running on Monterey 12.3

from hdmedians.

BobBDE avatar BobBDE commented on June 11, 2024

Hello I had the same problem in Ubunutu, but updating setuptools and wheel did not change anything (I already had the last version).

To fix the problem I had to install apt packages :
apt-get install gcc libpq-dev python3-dev

After that, I could install hdmedians with pip, hope this could help ! :)

from hdmedians.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.