GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

functions-framework does not use the sourced venv

未關閉
#219 2 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
bug P3
主要語言
Python
星號
968
分支
128
PR 合併指標
30 天內沒有已合併 PR

描述

I am using the functions-framework to develop on my local machine and I have created a python venv for the project. Following is a description of my issue:
- I have installed the firebase_admin lib within the venv and I am importing it within the src code.
- I am running the command: `functions-framework --source ./src/main.py --target main`
- The above command fails with following error: `ModuleNotFoundError: No module named 'firebase_admin'`
- The above error **does not** occur if I install the firebase_admin lib outside the venv (global scopte)

Is there a way to specify which python env to use or is always set to the global python scope?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。