Skip to content
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

Windows Instruction for PipX #278

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 46 additions & 2 deletions tutorials/get-to-know-hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,55 @@ Our Python packaging tutorials use the tool Hatch.
In this tutorial, you will install and get to know Hatch a bit more before starting to use it.

## Install Hatch
To begin, install Hatch from the command line using [pipx](https://pipx.pypa.io/stable/)

```bash
pipx install hatch
pip install hatch
```
:::{note}
You can optionally install Hatch using pipx from the command line using [pipx](https://pipx.pypa.io/stable/). If you're on Windows you may face issues during installation, if so, read further for instructions on a potential solution.

Installation Process for Windows Users:
* Step 0: Open Powershell

Press `Windows Key` and then type `Windows PowerShell`

* Step 1: Ensure Python is installed within your Powershell Terminal

Copy and paste the following code, `python --version`

If Python is not installed, dont be alarmed!
[Download Python Here](https://www.python.org/downloads/)

* Step 2: Install Pip

Copy and Paste the following code,
`python -m ensurepip`

* Step 3: Download Scoop

Copy and Paste the following code,
`iwr -useb get.scoop.sh | iex`

If any errors occur copy and paste the following code,
`Set-ExecutionPolicy RemoteSigned -Scope CurrentUser`

Then re-paste the first
`iwr -useb get.scoop.sh | iex`

* Step 4: Install Pipx

Copy and Paste the following code in Powershell,
`scoop install pipx`

Then, Copy and Paste the following code in Powershell,
`pipx ensurepath`

* Now, after completion of Step 4, you're prepared to continue to the first portion of the tutorial,
"Get to know hatch", to proceed in installing Hatch successfully!



:::

:::{tip}
Hatch can also be installed directly using `pip` or `conda`, but we encourage you to use `pipx`.
Expand Down
Loading