Hi guys! I have a question, is there a specific wa...
# ask-community
k
Hi guys! I have a question, is there a specific way to point my deployment on specific conda env to use while running flow? Right now I would do it like this:
prefect deployment build -n marvin -p default-agent-pool -q test flows/marvin.py:say_hi
Copy code
name: name
description: null
version: version
# The work queue that will handle this deployment's runs
work_queue_name: w-q
work_pool_name: w-p
tags: []
parameters: {}
schedule: null
is_schedule_active: null
infra_overrides: {}
infrastructure:
  type: process
  env: {}
  labels: {}
  name: null
  command:
    - conda
    - run
    - -n
    - conda_env_name
    - python
    - -m
    - prefect.engine
  stream_output: true
  working_dir: null
  block_type_slug: process
  _block_type_slug: process

###
### DO NOT EDIT BELOW THIS LINE
###
flow_name: flow-name
manifest_path: null
storage: null
path: path
entrypoint: flow.py:flow
parameter_openapi_schema:
  title: Parameters
  type: object
  properties: {}
  required: null
  definitions: null
timestamp: '2023-12-14T15:01:06.337189+00:00'
triggers: []
Is it correct way? Thanks!
1
b
Hi Kacper, this seems correct, and if this already works for you, I'd say you're good to go!
The other solution that I could think of would be to have your agent running in a environment where your conda env is already activated
k
Thanks @Bianca Hoch for responding! I will try either ways.
🙌 1