# Getting error trying to install dbt on Windows

**URL:** <https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651>\
**Category:** Help\
**Created:** [August 22, 2023, 1:23pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651 "2023-08-22T13:23:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkranes](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dkranes](https://discourse.getdbt.com/u/dkranes)\
**Post date:** [August 22, 2023, 1:23pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/1 "2023-08-22T13:23:05Z")

</div>

Hello all! I am trying to install dbt for Snowflake locally on my PC and am getting the below error. Any ideas on how to resolve this?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/2X/b/b64705d00d516db257c1cba6b3d88757aa44ca63.png)

From pip.log:  
Downloading dbt-snowflake-1.6.1.tar.gz  
Downloading from URL [https://files.pythonhosted.org/packages/7b/ce/b9a16972cdf3e3080e79ec68edd5ba5fd4b286b98c379d5a4a46042f16fd/dbt-snowflake-1.6.1.tar.gz#sha256=31199d3b9ed161dbe71c77920e1d505b0bf2008f3303b5bd9bfd4642dec50f06](https://files.pythonhosted.org/packages/7b/ce/b9a16972cdf3e3080e79ec68edd5ba5fd4b286b98c379d5a4a46042f16fd/dbt-snowflake-1.6.1.tar.gz#sha256=31199d3b9ed161dbe71c77920e1d505b0bf2008f3303b5bd9bfd4642dec50f06) (from [Links for dbt-snowflake](https://pypi.org/simple/dbt-snowflake/))  
Running setup.py (path:c:\users\oradb\appdata\local\temp\pip\_build\_oradb\dbt-snowflake\setup.py) egg\_info for package dbt-snowflake  
Traceback (most recent call last):  
File “”, line 17, in   
File “c:\users\oradb\appdata\local\temp\pip\_build\_oradb\dbt-snowflake\setup.py”, line 37  
\_version\_pattern = rf"““version\s\*=\s\*[”']{\_semver}{\_pre}{\_nightly}[”']“”"  
^  
SyntaxError: invalid syntax  
Complete output from command python setup.py egg\_info:  
Traceback (most recent call last):

File “”, line 17, in

File “c:\users\oradb\appdata\local\temp\pip\_build\_oradb\dbt-snowflake\setup.py”, line 37

```
_version_pattern = rf"""version\s*=\s*["']{_semver}{_pre}{_nightly}["']"""

                                                                         ^

```

SyntaxError: invalid syntax

* * *

Cleaning up…  
Removing temporary dir c:\users\oradb\appdata\local\temp\pip\_build\_oradb…  
Command python setup.py egg\_info failed with error code 1 in c:\users\oradb\appdata\local\temp\pip\_build\_oradb\dbt-snowflake  
Exception information:  
Traceback (most recent call last):  
File “C:\Python27\lib\site-packages\pip\basecommand.py”, line 122, in main  
status = self.run(options, args)  
File “C:\Python27\lib\site-packages\pip\commands\install.py”, line 278, in run  
requirement\_set.prepare\_files(finder, force\_root\_egg\_info=self.bundle, bundle=self.bundle)  
File “C:\Python27\lib\site-packages\pip\req.py”, line 1229, in prepare\_files  
req\_to\_install.run\_egg\_info()  
File “C:\Python27\lib\site-packages\pip\req.py”, line 325, in run\_egg\_info  
command\_desc=‘python setup.py egg\_info’)  
File “C:\Python27\lib\site-packages\pip\util.py”, line 697, in call\_subprocess  
% (command\_desc, proc.returncode, cwd))  
InstallationError: Command python setup.py egg\_info failed with error code 1 in c:\users\oradb\appdata\local\temp\pip\_build\_oradb\dbt-snowflake

---

<div class="post-metadata">

**Author:** ![brunoszdl](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/brunoszdl/32/4113_2.png) [@brunoszdl](https://discourse.getdbt.com/u/brunoszdl)\
**Post date:** [August 22, 2023, 2:06pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/2 "2023-08-22T14:06:10Z")

</div>

Try using a more recent python version (3.8 or higher)

---

<div class="post-metadata">

**Author:** ![dkranes](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dkranes](https://discourse.getdbt.com/u/dkranes)\
**Post date:** [August 22, 2023, 3:04pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/3 "2023-08-22T15:04:45Z")

</div>

Ok. I installed 3.11 prior to installing dbt but forgot to update the path. It is working now. TY!

---

<div class="post-metadata">

**Author:** ![brunoszdl](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/brunoszdl/32/4113_2.png) [@brunoszdl](https://discourse.getdbt.com/u/brunoszdl)\
**Post date:** [August 22, 2023, 3:54pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/4 "2023-08-22T15:54:39Z")

</div>

Awesome!! If it helped I would appreciate if you could mark it as the solution, thanks!! 😁

---

<div class="post-metadata">

**Author:** ![dkranes](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dkranes](https://discourse.getdbt.com/u/dkranes)\
**Post date:** [August 22, 2023, 10:58pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/5 "2023-08-22T22:58:29Z")

</div>

Marked as Solution. Once again, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [August 29, 2023, 10:58pm UTC](https://discourse.getdbt.com/t/getting-error-trying-to-install-dbt-on-windows/9651/6 "2023-08-29T22:58:46Z")

</div>

Closed on August 29, 2023, 10:58pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
