Sure thing! Here’s a summary of what I’ve tested so far:
Example 1
This is the ideal method that doesn’t work. I run these following commands on Windows 10 via the anaconda prompt:
conda create -n test_env python=3.7;
conda activate test_env;
conda install -n test_env -c conda-forge matminer;
This fails to install as it cannot solve the conda environment (see Michael’s output above)
Example 2
This is the “forced” pip install method - which is a last resort for installing things with conda enviornments. I run these following commands on Windows 10 via the anaconda prompt:
conda create -n test_env python=3.7;
conda activate test_env;
pip install matminer;
This fails and the error output is pretty massive. I’ll try to grab the key parts:
Building wheel for pymatgen (setup.py) ... error
ERROR: Command errored out with exit status 1:
...
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for pymatgen
...
Running setup.py clean for pymatgen
Building wheel for spglib (PEP 517) ... error
ERROR: Failed building wheel for spglib
...
Failed to build pymatgen spglib
ERROR: Could not build wheels for spglib which use PEP 517 and cannot be installed directly
Example 3
This is (again) the ideal method that doesn’t work. I run these following commands on Ubuntu 19.10 via the terminal:
conda create -n test_env python=3.7;
conda activate test_env;
conda install -n test_env -c conda-forge matminer;
This actually successfully works on Ubuntu, but matminer throws massive failures when you actually try to run it. That error in python is “Illegal instruction (core dumped)”, which I was unable to figure out.
Example 4 (working!)
This how I have matminer currently working, but it’s very non-ideal for beginner python users. I do this on Windows 10 via the anaconda prompt:
conda create -n test_env python=3.7;
conda activate test_env;
conda install -n test_env -c conda-forge pymatgen scikit-learn plotly tqdm
This installs all of matminers dependencies (I think - at least for all the functions I’ve used so far). I then clone the matminer repository to my desktop and add the matminer folder to my python path. So far, everything I’ve done using the package has worked so far. I bet the one thing that will throw issues is when using the plotly package, but I haven’t used any of that functionality with matminer yet.
I hope this helps!
-Jack