You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/docs/core/pip-install.md
+105Lines changed: 105 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,3 +154,108 @@ python -m pip install \
154
154
```
155
155
156
156
Or, better yet, just install the package(s) you need!
157
+
158
+
<VersionBlockfirstVersion="1.8">
159
+
160
+
### Installing prereleases
161
+
162
+
A prerelease adapter is a version released before the final, stable version. It allows users to test new features, provide feedback, and get early access to upcoming functionality — ensuring your system will be ready for the final release.
163
+
164
+
Using a prerelease of an adapter has many benefits such as granting you early access to new features and improvements ahead of the stable release. As well as compatibility testing, allowing you to test the adapter in your environment to catch integration issues early, ensuring your system will be ready for the final release.
165
+
166
+
Note that using a prerelease version before the final, stable version means the version isn't fully optimized and can result in unexpected behavior. Additionally, frequent updates and patches during the prerelease phase may require extra time and effort to maintain. Furthermore, the `--pre flag` may install compatible prerelease versions of other dependencies, which could introduce additional instability.
167
+
168
+
To install prerelease versions of dbt Core and your adapter, use this command (replace `dbt-adapter-name` with your adapter)
We recommend you install prereleases in a [virtual Python environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/). For example, to install a prerelease in a `POSIX bash`/`zsh` virtual Python environment, use the following commands:
Note, this will also install any pre-releases of all dependencies.
194
+
195
+
#### Activate your virtual environment
196
+
197
+
To install or use packages within your virtual environment:
198
+
199
+
- Activate the virtual environment to add its specific Python and `pip` executables to your shell’s PATH. This ensures you use the environment’s isolated setup.
200
+
201
+
For more information, refer to [Create and use virtual environments](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments).
202
+
203
+
Select your operating system and run the following command to activate it:
204
+
205
+
<Expandablealt_header="Unix/macOS" >
206
+
207
+
1. Activate your virtual environment:
208
+
209
+
```shell
210
+
source .venv/bin/activate
211
+
which python
212
+
.venv/bin/python
213
+
214
+
```
215
+
2. Install the prerelease using the following command:
2. Install the prerelease using the following command:
237
+
238
+
```shell
239
+
py -m pip install --pre dbt-core dbt-adapter-name
240
+
.venv\Scripts\activate
241
+
dbt --version
242
+
```
243
+
244
+
</Expandable>
245
+
246
+
247
+
</VersionBlock>
248
+
249
+
<VersionBlocklastVersion="1.7">
250
+
251
+
### Installing prereleases
252
+
253
+
`dbt-adapters` is only compatible with dbt Core 1.8 and higher. If you're on dbt Core v1.7 or lower, follow these steps to upgrade to v1.8 or higher to install prereleases of `dbt-adapters`.
0 commit comments