Skip to content

DOC Simplify Windows build instructions #31202

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

Merged
merged 5 commits into from
Apr 15, 2025

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Apr 14, 2025

Follow up of #31173.

Copy link

github-actions bot commented Apr 14, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 43c60d3. Link to the linter CI: here

command depends on the architecture of the Python interpreter. You can check
the architecture by running the following in ``cmd`` or ``powershell``
console:
Build scikit-learn by running the following command in a Miniforge or Command prompt:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to leave this line as it is?. Just saying to run the command in the prompt without saying Miniforge.
Because in any other place, it was not mentioned the term "Miniforge" before.
Just to avoid confusion, like (what is Miniforge if I am using Anaconda prompt/ C:/Linux prompt ?)

Comment based solely on my opinion.

Suggested change
Build scikit-learn by running the following command in a Miniforge or Command prompt:
Build scikit-learn by running the following command prompt:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a change mentioning the conda env or virtualenv rather than which console to use.

FYI, in my Windows VM setup I mostly use conda. I have installed Miniforge through https://conda-forge.org/download/ which is a miniconda install using conda-forge as the default channel. This is one of the setup I would recommend if you are using conda.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying @lesteve !
I knew that Miniforge was associated with conda in some way, but honestly, I have never used it.
I will remember this advice for the future.

@lesteve
Copy link
Member Author

lesteve commented Apr 15, 2025

Also bumped into astropy/astropy#17760 (comment) (for a completely unrelated reason) which confirms that Meson will find the MSVC compiler automatically:

In fact, as long as you have the MSVC compiler installed, anywhere on your system, Meson solves the problem of getting the build environment to see it.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks outdated indeed. Thanks @vitorpohlenz for the confirmation.

@jeremiedbb jeremiedbb merged commit 4bf49d0 into scikit-learn:main Apr 15, 2025
36 checks passed
@lesteve lesteve deleted the tweak-windows-install branch April 15, 2025 14:00
@lesteve lesteve added the OS:Windows Problem specific to Windows label Apr 16, 2025
lucyleeow pushed a commit to EmilyXinyi/scikit-learn that referenced this pull request Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation OS:Windows Problem specific to Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants