-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error description in the document for installation: pip install pymatgen[extra] #1965
Comments
Here, "extra" is a placeholder for the specific "extra" that you require. Currently, you can choose from "provenance", "ase", "vis" or "abinit" (see here). As with the BoltzTrap2 dependencies, extras are optional. Most users do not need them. |
Do you mean any of them will do the trick, i.e., running one of the following:
I use the following command to install all possible dependencies:
|
The recommended way to install pymatgen is either:
or
If you are doing development, then you can manually install those dependencies yourself, such as doing |
For my case, I run the command immediately under the local git repo root of pymatgen, so I think it should be invoked like the forms I posted previously.
But the requirements.txt doesn't include any of these packages. |
Yes, that's correct, because these are optional requirements (hence "extras"), they are in Perhaps it would be useful to ask what you're intending to use pymatgen for, or why you're installing it? Typically, if you're new to pymatgen, I would recommend following the The important thing is to understand that the |
But even the requirements-optional.txt doesn't include all the dependencies we discussed here. |
I'm sorry, I'm not sure I understand the problem you're having. Pymatgen will work fine even if optional dependencies are not installed. If you find that you want to use a feature for which you don't have the requisite dependency, you will get a message and you can install it. The |
Thanks a lot, got it. Another question: do you mean vtk is being deprecated by pymatgen? |
There is still another question I can't figure out, see following for more info. The following codes are the content of extras_require section of setup.py.
So, if I want to install all of these extra dependencies with one run of pip, I find that only the following command can do the trick:
And all the following commands failed:
|
The correct pip install command would be |
I'm still confused why can't I combine them into one like the following, considering that the usage abides with the pip's specification:
or run as following if we are directly in the pymatgen's top level subdirectory:
See here for the discussion relevant to this problem. |
Hi,
The document told the following:
But the output of the following installation command is not coherent with the above description:
Any hints for this problem?
Regards,
HY
The text was updated successfully, but these errors were encountered: