Installation
Non-Windows Users¶
Visit the Pixi installation page and follow instructions to install Pixi in your shell.
Tutorial: Install Pixi with Powershell for Windows¶
1. Install Pixi¶
Visit the Pixi installation page and follow instructions to install Pixi in your shell.
2. Open Powershell and Configure Pixi¶
This code below tells Powershell to allow pixi to connect to the shell
1 2 |
|
Technical explanation
This sets the current user's PowerShell execution policy to "RemoteSigned," allowing local scripts to run unsigned while requiring signatures for downloaded scripts. - Local scripts run without needing a digital signature, allowing for flexibility during development. - Scripts from the internet must be signed, which helps protect against running untrusted or tampered code.Command Breakdown
- `Set-ExecutionPolicy`: Changes the PowerShell script execution policy. - `RemoteSigned`: Allows unsigned local scripts, but requires a signature for downloaded ones. - `-Scope CurrentUser`: Affects only your user account (no admin rights needed).3. Move to CoastSeg¶
Change directories to the location of your pyproject.toml
-
cd <CoastSeg folder containing pyproject.toml>
-
Check if the
pyproject.toml
exists in that directory withTest-Path .\pyproject.toml
- If it exists it will print
True
- If it exists it will print
4. Validate Pixi is Working¶
Activate the environment with:
1 |
|
- This will activate the default environment, which in this example is called
(coastseg)
If you get an error like:
Then try the following (you don’t need admin permissions)
- This command tells powershell that Pixi is safe to connect to Powershell, buts temporary so you will need to re-run it each time you run
pixi shell
in a new powershell window
1 2 3 4 5 6 7 |
|