Skip to content

Error with firebase init functions during dependencies installition step #8571

@aqibnawazdev

Description

@aqibnawazdev

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

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions