@@ -4,7 +4,8 @@ icon: material/cog-box
44
55# :material-cog-box: Installation & Setup
66
7- ## Requirements
7+ ** EasyDiffraction** is a cross-platform Python library compatible with
8+ ** Python 3.11** through ** 3.14** .
89
910EasyDiffraction is a cross-platform Python library compatible with
1011** Python 3.11 through 3.13** .
@@ -13,6 +14,93 @@ installation.
1314
1415## Environment Setup <small >optional</small > { #environment-setup data-toc-label="Environment Setup" }
1516
17+ - **Ease of use**: Pixi simplifies the installation process, making it
18+ accessible even for users with limited experience in package management.
19+ - **Python version control**: Pixi allows specifying and managing different
20+ Python versions for each project, ensuring compatibility.
21+ - **Isolated environments**: Pixi creates isolated environments for each
22+ project, preventing conflicts between different package versions.
23+ - **PyPI and Conda support**: Pixi can install packages from both PyPI and
24+ Conda repositories, providing access to a wide range of libraries.
25+
26+ An alternative installation method using the traditional ** pip** package
27+ manager is also provided.
28+
29+ ## Installing with Pixi <small >recommended</small > { #installing-with-pixi data-toc-label="Installing with Pixi" }
30+
31+ This section describes the simplest way to set up EasyDiffraction using
32+ ** Pixi** .
33+
34+ #### Installing Pixi
35+
36+ - Install Pixi by following the instructions on the
37+ [ official Pixi Installation Guide] ( https://pixi.prefix.dev/latest/installation ) .
38+
39+ #### Setting up EasyDiffraction with Pixi
40+
41+ <!-- prettier-ignore-start -->
42+
43+ - Choose a project location (local drive recommended).
44+
45+ ??? warning ":fontawesome-brands-windows: Windows + OneDrive"
46+
47+ We **do not recommend creating a Pixi project inside OneDrive or other
48+ synced folders**.
49+
50+ By default, Pixi creates the virtual environment inside the project
51+ directory (in `.pixi/`). On Windows, synced folders such as OneDrive
52+ may cause file‑system issues (e.g., path-length limitations or
53+ restricted link operations), which can lead to unexpected install
54+ errors or environments being recreated.
55+
56+ Instead, create your project in a **local directory on your drive**
57+ where you have full write permissions.
58+
59+ <!-- prettier-ignore-end -->
60+
61+ - Initialize a new Pixi project and navigate into it:
62+ ``` txt
63+ pixi init easydiffraction
64+ cd easydiffraction
65+ ```
66+ - Set the Python version for the Pixi environment (e.g., 3.14):
67+ ``` txt
68+ pixi add python=3.14
69+ ```
70+ - Add EasyDiffraction to the Pixi environment from PyPI:
71+ ``` txt
72+ pixi add --pypi easydiffraction
73+ ```
74+ - Add a Pixi task to run EasyDiffraction commands easily:
75+ ``` txt
76+ pixi task add easydiffraction "python -m easydiffraction"
77+ ```
78+
79+ #### Updating Pixi and EasyDiffraction
80+
81+ - To update all packages in the Pixi environment, including
82+ EasyDiffraction:
83+ ``` txt
84+ pixi update
85+ ```
86+ - To update Pixi itself to the latest version:
87+ ``` txt
88+ pixi self-update
89+ ```
90+
91+ #### Uninstalling Pixi
92+
93+ - Follow the
94+ [ official Pixi Guide] ( https://pixi.prefix.dev/latest/installation/#uninstall ) .
95+
96+ ## Classical Installation
97+
98+ This section describes how to install EasyDiffraction using the
99+ traditional method with ** pip** . It is assumed that you are familiar
100+ with Python package management and virtual environments.
101+
102+ ### Environment Setup <small >optional</small > { #environment-setup data-toc-label="Environment Setup" }
103+
16104We recommend using a ** virtual environment** to isolate dependencies and
17105avoid conflicts with system-wide packages. If any issues arise, you can
18106simply delete and recreate the environment.
0 commit comments