bun_python icon indicating copy to clipboard operation
bun_python copied to clipboard

Usage with venv

Open platon-ivanov opened this issue 7 months ago • 0 comments

Hello! Is it possible to use the library with venv? Running it this way:

export PYTHONHOME=$(pwd)/.venv
export PYTHONPATH=$(pwd)/.venv/lib/python3.13/site-packages
export BUN_PYTHON_PATH=/usr/lib/libpython3.13.so
bun run "./src/main.ts" 

I get such output:

Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fd9aa241240 (most recent call first):
  <no Python frame>

platon-ivanov avatar Jun 11 '25 12:06 platon-ivanov