Virtual env

trying to deploy to webserver with no internet access. So i created the virtual conda env on my local. Then copied to server. When I activate the environment on the cmd line the try to run panel cmd it is referencing paths from my local machine. Question does installing panel in a virtual env do any kind compiling for the panel.exe?

(arcgispro-py3-pyviz) C:\Users\admin\AppData\Local\ESRI\conda\envs\arcgispro-py3-pyviz>panel serve “D:\myapp\scripts\panelform3.py”
Fatal error in launcher: Unable to create process using ‘“c:\users\myuser\appdata\local\esri\conda\envs\arcgispro-py3-pyviz\python.exe” “C:\Users\admin\AppData\Local\ESRI\conda\envs\arcgispro-py3-pyviz\Scripts\panel.exe” serve “D:\myapp\scripts\panelform3.py”’: The system cannot find the file specified.

got it to work with

python C:\Users\admin\AppData\Local\ESRI\conda\envs\arcgispro-py3-pyviz\Scripts\panel.exe serve “D:\myapp\scripts\panelform3.py”

no idea why even with env activated just panel doesnt work

1 Like