Getting error trying to install dbt on Windows

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?

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 (from Links for 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

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

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

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

Marked as Solution. Once again, thank you!

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