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 摘要。