This message was deleted.
# sky130
s
This message was deleted.
s
Python dependent software is the most incompatible thing ever. To make a python app work you have to: • Use a container (docker or similar) that provides you the application and all the required python stuff, with the right versions. Any micro library version difference usually breaks the whole thing so it is mandatory to have the exact same versions for everything, as everything (API, syntax, whatever) is changing constantly over time. • Use a virtual environment for pythonware to be used for that (and only that) specific application. On Debian/Ubuntu you create a virtual env by doing this:
Copy code
## create a new virtual env called my_virtual_env
python3 -m venv --system-site-packages ~/.venvs/my_virtual_env
## install modules
~/.venvs/my_virtual_env/bin/python -m pip install \
   PyYaml numpy scipy h5py zmq shapely rtree future jinja2 IPython \
   openmdao sphinx_rtd_theme GitPython python-gitlab forallpeople \
   klayout gdsfactory volare
Never install all this crap in your main system, as it will break your OS installation. Virtual envs create an isolated python install that you can then use for your application. The virtual environment can be activated by:
Copy code
. ~/.venvs/my_virtual_env/bin/activate
After this you will be using pythonware from the virtual env instead of the system native python.