Open csherwood-usgs opened 2 years ago
After installing MSVC, the installation went well, but I don't think we can expect end users to do that.
Yes you're right, the current situation is not ideal and is due to the fact that there are no conda versions of pydensecrf for Python versions > 3.6, and we don't really want the app to get stuck on Python 3.6 since Panel now only supports Python >= 3.7 (as most of the PyData ecosystem does).
I've just opened a PR on pydensecrf
to try to get things moving:
@csherwood-usgs On Windows, I just managed to install pydensecrf using the VS2015 runtime anaconda package, which is faster and simpler than the slow 7GB installation from Microsoft
conda install -c anaconda vs2015_runtime
then
pip install git+https://github.com/li-plus/pydensecrf.git@0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9
Oh very nice trick, I should add that to the README, thanks!
In my experience, building wheels is asking for problems in installations. I guess I have to install MSV C++ 14 or better. Ugh.
`Installing pip dependencies: \ Ran pip subprocess with arguments: ['C:\Users\csherwood\Anaconda3\envs\doodler-dev\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\crs\src\holodoodler\condaenv.nvb2thvv.requirements.txt'] Pip subprocess output: Collecting git+https://github.com/li-plus/pydensecrf.git@0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9 (from -r C:\crs\src\holodoodler\condaenv.nvb2thvv.requirements.txt (line 1)) Cloning https://github.com/li-plus/pydensecrf.git (to revision 0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9) to c:\users\csherw~1\appdata\local\temp\1\pip-req-build-5lzf4b63 Resolved https://github.com/li-plus/pydensecrf.git to commit 0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: pydensecrf Building wheel for pydensecrf (pyproject.toml): started Building wheel for pydensecrf (pyproject.toml): finished with status 'error' Failed to build pydensecrf
Pip subprocess error: Running command git clone --filter=blob:none --quiet https://github.com/li-plus/pydensecrf.git 'C:\Users\CSHERW~1\AppData\Local\Temp\1\pip-req-build-5lzf4b63' Running command git rev-parse -q --verify 'sha^0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9' Running command git fetch -q https://github.com/li-plus/pydensecrf.git 0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9 Running command git checkout -q 0d53acbcf5123d4c88040fe68fbb9805fc5b2fb9 error: subprocess-exited-with-error
× Building wheel for pydensecrf (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\pydensecrf copying pydensecrf\utils.py -> build\lib.win-amd64-cpython-37\pydensecrf copying pydensecrf__init__.py -> build\lib.win-amd64-cpython-37\pydensecrf running build_ext building 'pydensecrf.eigen' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pydensecrf ERROR: Could not build wheels for pydensecrf, which is required to install pyproject.toml-based projects
failed
CondaEnvException: Pip failed
`