firebase / firebase/firebase-tools

Error with firebase init functions during dependencies installition step

Open
#8,571 5 comments 0 reactions 0 assignees View on GitHub
api: functions integration: python triaged
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

I am getting this error every time I initiate firebase functions with python

python --version: `Python 3.13.3`

OS: `window 11`

pip --version: `pip 25.1.1 from C:\Python313\Lib\site-packages\pip (python 3.13)`

![Image](https://github.com/user-attachments/assets/d9d90a59-b9da-450a-ae95-5ded2b3f46c9)

firebase-debug.log shows

```
[info] Functions can be deployed with firebase deploy.

[info] + Wrote functions/requirements.txt
[info] + Wrote functions/.gitignore
[info] + Wrote functions/main.py
[debug] [2025-05-12T11:12:15.017Z] Running command with virtualenv: command="C:\Users\lenovo\Downloads\python-cloud-functions\functions\venv\Scripts\activate.bat", args=["","&&","pip3","install","--upgrade","pip"]
[debug] [2025-05-12T11:12:22.496Z] Error: spawn "C:\Users\lenovo\Downloads\python-cloud-functions\functions\venv\Scripts\activate.bat" ENOENT
at notFoundError (C:\Users\lenovo\AppData\Roaming\nvm\v22.14.0\node_modules\firebase-tools\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\lenovo\AppData\Roaming\nvm\v22.14.0\node_modules\firebase-tools\node_modules\cross-spawn\lib\enoent.js:40:16)
at cp.emit (C:\Users\lenovo\AppData\Roaming\nvm\v22.14.0\node_modules\firebase-tools\node_modules\cross-spawn\lib\enoent.js:27:25)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
at Process.callbackTrampoline (node:internal/async_hooks:130:17)
[error]
[error] Error: An unexpected error has occurred.

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.