paraview + trame

I tried the paraview + trame example:

https://kitware.github.io/trame/docs/tutorial-paraview.html

I got it working, but the steps on the website did not work for me.
In the tutorial, this step did not work for me:

~/Codes/ParaView-5.11.0-RC2-MPI-Linux-Python3.9-x86_64/bin/pvpython
./05_paraview/SimpleCone.py
–venv .pvenv

ModuleNotFoundError: No module named ‘trame’

But if I do this, the example works:

conda activate pv-env
python 05_paraview/SimpleCone.py --port 1234

Not sure if this matters in practice?
Also not sure how to get it working by directly calling paraview’s pvpython.

The following worked for me

conda deactivate   # make sure I don't have a blend of conda and local venv
unset PV_VENV      # make sure I don't have a global venv set for ParaView 

git clone https://github.com/Kitware/trame.git

python3.9 -m venv .venv
source .venv/bin/activate
pip install trame

/Applications/ParaView-5.10.1.app/Contents/bin/pvpython ./trame/examples/07_paraview/SimpleCone/RemoteRendering.py --port 1234 --venv .venv

And the tutorial one worked for me too

git clone https://github.com/Kitware/trame-tutorial.git
/Applications/ParaView-5.10.1.app/Contents/bin/pvpython ./trame-tutorial/05_paraview/SimpleCone.py --port 1234 --venv .venv