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
Issue with cmake during installation of pyscf #1684
Comments
Is it a MacOS running on M1 chips? There is a macos wheel for x86 chips so |
My Mac is running on an Intel chip. |
@vandan-revanur, I'm not sure why it's defaulting to building from sources, it should default to downloading the wheel. Can you tell us if the following runs successfully? pip install --prefer-binary pyscf==2.2.0 |
@jamesETsmith That command works fine and it install pyscf. |
Great to hear @vandan-revanur! Are you ok if I close the issue? |
No @jamesETsmith that doesn’t solve the original issue. The installation should work with just pip install pyscf. Which still does not work. So it’s not right to close the issue. |
Fair enough, my guess is that your version of pip could be older. A couple followup questions:
pip install pyscf==2.2.0
pip install pyscf==2.1.1
pip install pyscf==2.0.1
|
I am using pip version: 23.0.1
|
@vandan-revanur thanks for the extra info! It looks like things are working fine from those results. Does |
@jamesETsmith The reason why @vandan-revanur raised this issue is because several members of my lab struggled to install PySCF in their first attempt using Therefore the answer to:
is yes 😄 However, I was skeptical about the solution in #1685, because my procedure for installing/upgrading CMake on Ubuntu is not to run So I'm not sure what the universal solution is, but perhaps if the website's installation instructions told Mac users to run |
@ndattani, thanks for elaborating. Were your students all working in a consistent environment (i.e. on the same cluster) or were they working on their personal machines with a variety of python/pip/OS/architecture combinations? The main problem here is that pip is trying to install PySCF from sources. I'm not totally sure how pip makes this decision and why it's choosing this for you and your students. With that said, the decision is happening inside pip and not something we can control (as far as I know). I'm really at a loss for why we're suddenly seeing this behavior from pip, I've never seen it before when working with PySCF and can't reproduce it on any systems I have access to. I agree with @sunqm that we shouldn't add cmake to the list of python package dependencies because it's unnecessary for people downloading wheels. @sunqm do you have any ideas about this? |
@jamesETsmith These were on personal machines rather than on a cluster. I think only Mac users experienced this, and even then it was not universal across all Mac users. I can double check the names of the people who complained about this error in the Discord server. I'm also skeptical about the solution proposed in #1685, but maybe the website's installation instructions could say that if the user gets this error on a Mac, they can fix it by running "pip install cmake" first. |
Yizhen had the cmake problem on Windows. Mia fixed it by doing:
Most of the others fixed it by doing:
|
@ndattani, thanks again for the detailed info. Since most people are working on individual machines my theory that this bizarre behavior is coming from older pip versions doesn't make sense. I agree that we should update the documentation, but I don't think we should recommend installing cmake and building from source. I think it would be best if we triaged the installation instructions like this:
We have this information already on the install instructions page, but I think reorganizing as I suggested above could make things clearer. We could also include the cmake error message in a "gotchas" section on the install page similar to what we do for users who experience the @ndattani, just as a heads up, PySCF isn't supported on Windows so you may want to suggest to your students with Windows machines that they set up WSL. Alternatively, if they are only running small problems they can use Google Colab notebooks to run PySCF without any installation on their local machine, see the examples here. |
@jamesETsmith Thanks very much. Perhaps Your proposal for improved documentation seems like it would indeed be helpful to new users. One thing I'll add is that a lot of people had errors due to trying As for Windows, indeed I've got all Windows users to install an Ubuntu VM. For some reason, WSL doesn't seem to work as well as it did when I had used it from around 2015-2017. Multiple students couldn't get things working smoothly in WSL and have things working perfectly fine in an Ubuntu VM (which defeats the purpose of WSL). I can ask them if they were using Windows 10 or 11, because @erikkjellgren has had a good experience with WSL2 on Windows 11. |
I have faced same issue while installing environment for qiskit textbook which uses |
PySCF isn't supported on Windows |
Hi @vandan-revanur , has this been resolved? |
@verena-neufeld The latest version works with just : pip install pyscf. |
The original problem in your first post, was that if cmake isn't installed, then "pip install pyscf" didn't work as expected. Now it works when cmake isn't installed? |
@ndattani Yes it worked without installing cmake. I tried “pip install pyscf” on a fresh 3.10 virtual env and it worked without installing cmake. |
It then seems that everything is solved, so this issue can be closed. |
It seems that I'm encountering exactly the same issues here, has the installation problem been solved on windows? How can I install it with pip? |
Currently if cmake is not installed locally, the installation of pyscf does not work and gives the following error.
To reproduce:
pip install pyscf
Error
The text was updated successfully, but these errors were encountered: