
Hi, In the past, I have been able to successfully install the POT package using the conda installation tool, but now I'm trying to install the POT package in a cloud environment which doesn't allow me to use that. I tried using "pip install" but it seems to be crashing because the C-library dependencies are missing. Below is the full error message. Has somebody else encountered this problem? Thanks, -Vanessa $ pip install pot Collecting pot Using cached POT-0.4.0.tar.gz Requirement already satisfied: numpy in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from pot) Requirement already satisfied: scipy in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from pot) Requirement already satisfied: cython in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from pot) Requirement already satisfied: matplotlib in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from pot) Requirement already satisfied: pytz in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from matplotlib->pot) Requirement already satisfied: six>=1.10 in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from matplotlib->pot) Requirement already satisfied: cycler>=0.10 in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from matplotlib->pot) Requirement already satisfied: python-dateutil>=2.0 in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from matplotlib->pot) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\hure7003\appdata\local\continuum\anaconda3\envs\test\lib\site-packages (from matplotlib->pot) Building wheels for collected packages: pot Running setup.py bdist_wheel for pot: started Running setup.py bdist_wheel for pot: finished with status 'error' Complete output from command C:\Users\hure7003\AppData\Local\Continuum\anaconda3\envs\test\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hure7003\\AppData\\Local\\Temp\\pip-build-z2p__n0c\\pot\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\hure7003\AppData\Local\Temp\tmp4c4tkm0ppip-wheel- --python-tag cp36: running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\ot copying ot\bregman.py -> build\lib.win-amd64-3.6\ot copying ot\da.py -> build\lib.win-amd64-3.6\ot copying ot\datasets.py -> build\lib.win-amd64-3.6\ot copying ot\dr.py -> build\lib.win-amd64-3.6\ot copying ot\gromov.py -> build\lib.win-amd64-3.6\ot copying ot\optim.py -> build\lib.win-amd64-3.6\ot copying ot\plot.py -> build\lib.win-amd64-3.6\ot copying ot\utils.py -> build\lib.win-amd64-3.6\ot copying ot\__init__.py -> build\lib.win-amd64-3.6\ot creating build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\bregman.py -> build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\da.py -> build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\__init__.py -> build\lib.win-amd64-3.6\ot\gpu creating build\lib.win-amd64-3.6\ot\lp copying ot\lp\__init__.py -> build\lib.win-amd64-3.6\ot\lp running build_ext building 'ot.lp.emd_wrap' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ---------------------------------------- Failed building wheel for pot Running setup.py clean for pot Failed to build pot Installing collected packages: pot Running setup.py install for pot: started Running setup.py install for pot: finished with status 'error' Complete output from command C:\Users\hure7003\AppData\Local\Continuum\anaconda3\envs\test\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hure7003\\AppData\\Local\\Temp\\pip-build-z2p__n0c\\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 C:\Users\hure7003\AppData\Local\Temp\pip-p5vhcyge-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\ot copying ot\bregman.py -> build\lib.win-amd64-3.6\ot copying ot\da.py -> build\lib.win-amd64-3.6\ot copying ot\datasets.py -> build\lib.win-amd64-3.6\ot copying ot\dr.py -> build\lib.win-amd64-3.6\ot copying ot\gromov.py -> build\lib.win-amd64-3.6\ot copying ot\optim.py -> build\lib.win-amd64-3.6\ot copying ot\plot.py -> build\lib.win-amd64-3.6\ot copying ot\utils.py -> build\lib.win-amd64-3.6\ot copying ot\__init__.py -> build\lib.win-amd64-3.6\ot creating build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\bregman.py -> build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\da.py -> build\lib.win-amd64-3.6\ot\gpu copying ot\gpu\__init__.py -> build\lib.win-amd64-3.6\ot\gpu creating build\lib.win-amd64-3.6\ot\lp copying ot\lp\__init__.py -> build\lib.win-amd64-3.6\ot\lp running build_ext building 'ot.lp.emd_wrap' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ---------------------------------------- Command "C:\Users\hure7003\AppData\Local\Continuum\anaconda3\envs\test\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\hure7003\\AppData\\Local\\Temp\\pip-build-z2p__n0c\\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 C:\Users\hure7003\AppData\Local\Temp\pip-p5vhcyge-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\hure7003\AppData\Local\Temp\pip-build-z2p__n0c\pot\ (test)

Hello Vanessa, In order to install POT with pip you need a c compiler on the machine (to compile the emd solver). You can install it on windows freely from the following url http://landinghub.visualstudio.com/visual-cpp-build-tools Still I'm surprised you cannot use conda since from the paths in the errors you are using an anaconda3 distributions that has conda installed by default. Rémi Le 10/01/2018 à 20:49, Vanessa Ortiz a écrit :
-- Rémi Flamary Web: http://remi.flamary.com Tel: +33 (0)4 92 07 63 80 Laboratoire Lagrange, UMR CNRS 7293 Observatoire de la Côte d'Azur Université Côte d'Azur

Hello Vanessa, In order to install POT with pip you need a c compiler on the machine (to compile the emd solver). You can install it on windows freely from the following url http://landinghub.visualstudio.com/visual-cpp-build-tools Still I'm surprised you cannot use conda since from the paths in the errors you are using an anaconda3 distributions that has conda installed by default. Rémi Le 10/01/2018 à 20:49, Vanessa Ortiz a écrit :
-- Rémi Flamary Web: http://remi.flamary.com Tel: +33 (0)4 92 07 63 80 Laboratoire Lagrange, UMR CNRS 7293 Observatoire de la Côte d'Azur Université Côte d'Azur
participants (2)
-
Rémi Flamary
-
Vanessa Ortiz