Slackbot
07/23/2023, 1:08 PMStefan Schippers
07/24/2023, 7:19 AM## 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:
. ~/.venvs/my_virtual_env/bin/activate
After this you will be using pythonware from the virtual env instead of the system native python.Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by