PyO3 / PyO3/pyo3

Add support for venvs.

Open
#3,284 3 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

I have a python venv and in my opinion, there should be a function to load the venv into the pyo3 runtime. Something like

pyo3::set_venv("/path/to/your/venv");

would make things very easy. Or is there a simple way how this is possible that I'm missing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PyO3's runtime initialization and the Python C-API integration to understand how a Python virtual environment could be selected. Compare the requested pyo3::set_venv("/path/to/your/venv") entry point with any existing configuration or loading mechanism; done means an agreed, supported approach is implemented or the existing approach is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.