Hello,

I cannot install PO on my using either pip or setup.

I got the following message, after entering: pip install POT

 ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-install-nzpvw23r/POT/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-record-o4wa2u7m/install-record.txt --single-version-externally-managed --compile:
    ERROR: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.6-intel-3.6
    creating build/lib.macosx-10.6-intel-3.6/ot
    copying ot/bregman.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/plot.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/stochastic.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/datasets.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/__init__.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/dr.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/utils.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/smooth.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/gromov.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/optim.py -> build/lib.macosx-10.6-intel-3.6/ot
    copying ot/da.py -> build/lib.macosx-10.6-intel-3.6/ot
    creating build/lib.macosx-10.6-intel-3.6/ot/gpu
    copying ot/gpu/bregman.py -> build/lib.macosx-10.6-intel-3.6/ot/gpu
    copying ot/gpu/__init__.py -> build/lib.macosx-10.6-intel-3.6/ot/gpu
    copying ot/gpu/utils.py -> build/lib.macosx-10.6-intel-3.6/ot/gpu
    copying ot/gpu/da.py -> build/lib.macosx-10.6-intel-3.6/ot/gpu
    creating build/lib.macosx-10.6-intel-3.6/ot/lp
    copying ot/lp/__init__.py -> build/lib.macosx-10.6-intel-3.6/ot/lp
    copying ot/lp/cvx.py -> build/lib.macosx-10.6-intel-3.6/ot/lp
    creating build/lib.macosx-10.6-intel-3.6/ot/externals
    copying ot/externals/funcsigs.py -> build/lib.macosx-10.6-intel-3.6/ot/externals
    copying ot/externals/__init__.py -> build/lib.macosx-10.6-intel-3.6/ot/externals
    running build_ext
    building 'ot.lp.emd_wrap' extension
    creating build/temp.macosx-10.6-intel-3.6
    creating build/temp.macosx-10.6-intel-3.6/ot
    creating build/temp.macosx-10.6-intel-3.6/ot/lp
    /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I//usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0 -Iot/lp -I/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include -I/private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-install-nzpvw23r/POT/ot/lp -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c ot/lp/emd_wrap.cpp -o build/temp.macosx-10.6-intel-3.6/ot/lp/emd_wrap.o
    warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    In file included from ot/lp/emd_wrap.cpp:28:
    In file included from /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m/Python.h:34:
    In file included from //usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0/stdlib.h:36:
    In file included from //usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0/cstdlib:77:
    //usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0/bits/std_abs.h:102:7: error: __float128 is not supported on this target
      abs(__float128 __x)
          ^
    //usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0/bits/std_abs.h:101:3: error: __float128 is not supported on this target
      __float128
      ^
    In file included from ot/lp/emd_wrap.cpp:636:
    In file included from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
    In file included from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it with " \
     ^
    In file included from ot/lp/emd_wrap.cpp:638:
    In file included from ot/lp/EMD.h:21:
    ot/lp/network_simplex_simple.h:1421:20: warning: unused variable 'prevCost' [-Wunused-variable]
                double prevCost=-1;
                       ^
    3 warnings and 2 errors generated.
    error: command '/usr/bin/clang' failed with exit status 1
    ----------------------------------------
ERROR: Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-install-nzpvw23r/POT/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-record-o4wa2u7m/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/73/xkvgyzh906nc52ydlh23cnvm0000gp/T/pip-install-nzpvw23r/POT/

It occured after I add the path for iostream, which was getting me an error message, using
export CPPFLAGS=-I//usr/local/Cellar/gcc/7.3.0/include/c++/7.3.0

I also tried to use python setup install, but the same occurs.

I am working on a mac notebook pro with High Sierra OS.

Does someone have any idea to help?
Thanks!
odv
--
Olivier de viron
Directeur de l'umr lienss
DEPARTEMENT SCIENCES DE LA TERRE
05 46 50 76 34
olivier.de_viron@univ-lr.fr
LIttoral ENvironnement et Sociétés (LIENSs)
Université de La Rochelle
Bâtiment ILE
2, rue Olympe de Gouges
17000 La Rochelle
lienss.univ-larochelle.fr
www.univ-larochelle.fr
Suivez-nous : Facebook | Twitter