-
Notifications
You must be signed in to change notification settings - Fork 55
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
[UX] Clarification: 'pipx' command not found - Installation required in Windows OS #265
Comments
Great information! The first mention of pipx is a link to their page. That page includes a section "On Windows," which recommends scoop (I'm not familiar with that) or pip. The pip steps from there:
Perhaps it would be valuable to elaborate on the recommended actions and tools here like you say, or we can expect the audience to go through the link and get the recommended tool using the right steps for their machine. When I went through this step, I decided to use the discouraged approach of installing hatch via pip because I felt comfortable making sure that I installed it outside any virtual environments. |
Hmm, I think the key issue here is that a naive reader may not realize that |
Sounds good @zackw; I could agree with that! |
Agreed! Adding something as simple as a sidenote should help. |
After our discussion IRL, I was curious how hatch itself recommends installing on Windows. Here is that: https://hatch.pypa.io/dev/install/#windows Have not tested that, but seems to rely on native tools rather than grabbing something else; that seemed to be our aim?
hatch also mentions that it can be installed via pip, but warns that you might want to use pipx, 😅 I'm unfamiliar with the problem pipx is trying to solve, so I defer to those with more experience with such tools. |
This is a walkthrough of all the steps I made, as a Windows user, to install Hatch. Step 1: Open Powershell Step 2: Check to see if python is installed Step 2.5: Download python from https://www.python.org/downloads/ Step 3: Using "curl" (a curl is a tool for transferring data requests to and from a server) you can download Pip Step 4: Download Scoop Step 5: Install Pipx After completion of Step 5, the "Get to know hatch" Tutorial can be followed to completion without any more issues (atleast for me). |
Related to #270. Let's incorporate Ofek's suggestion from that issue. Next action: #270 (comment) |
@willingc would that be using the hatch installers rather than a different way to install on windows vs mac? i believe we have an open pr with instructions that @Vaunty created. i'm not sure how to best navigate this but i DO know that our windows users had a lot of installation issues - most of which were related to pipx on windows (so allowing for a global hatch install on windows was hard) |
does anyone here use windows? if we can get a confirmation that the windows installers work then i vote that we
this i think would be the simplest path for users IF the windows installer is straight forward to install. pipx seems to NOT be straight forward to install across operating systems so let's avoid it. we just needs a windows user to test this - i don't have windows unfortunately. |
I have windows and can capture steps using the installer mentioned in the other issue! |
that would be awesome!! a pr is also welcome if you have bandwidth. and if not, i can tag this as help-wanted and we will have windows details that you provide here! thank you so much! this is going to improve things a lot. |
here are the steps I used on Windows (with the caveat that I don't do any Python work on my Windows machine, so this is all from a very naive-to-coding-on-Windows perspective):
everything worked as expected, and the biggest issues were related to bypassing Windows security warnings. |
Wow well that is WAY simpler @kierisi than all of the pipx instructions that others were using. Thank you!! Windows & securityThat security item - that is likely a standard windows challenge. Does anyone here know by chance if we can with confidence just tell users that they can always trust hatch installers? would that pop up for any installer that wasn't "windows certified?" so i wonder if that pops up when you install anaconda for instance. thank you all. it sounds like we have a path forward here that will work much better than our current lessons do! |
Having to confirm that installers are making changes to your machine is pretty standard when you install software on Windows. As long as we are linking to a trusted source for the installer, instructing a user to confirm that prompt is probably expected. |
ok fantastic. y'all - i've just opened this pr which updates the installation instructions A few things we learned chatting in #301
Reviews are welcome on my open PR!! we are teaching a workshop the week after next so i'll leave this open for a week with the plan to merge next tuesday July 2! this issue can then be closed! 🚀 |
I think we can close this issues as well! We have now moved to using the Hatch installers which insure a global installation (except on Linux). We've tested this approach in a workshop and it worked well. I am going to close this however, please reopen if there are lingering issues that I am not aware of!! Thank you all for the thought that went into this installation challenge! |
Description
Reference: https://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html
When trying to run: pipx install hatch in Windows command line, the following error is faced: 'pipx' is not recognized as an internal or external command, operable program, or batch file.
Steps to Reproduce
Expected Behavior
The pipx command should be recognized and install the package in an isolated environment.
Actual Behavior
The error message "pipx is not recognized" appears as an internal or external command, operable program or batch file.
Solution
Install pipx using pip install pipx.
This is not a bug report but rather a clarification to help users understand the issue.
The text was updated successfully, but these errors were encountered: