Skip to content

24. Python command line setup on virtual machine on adminhost server

jmesi edited this page Aug 8, 2024 · 1 revision

Connect to user in adminhost server

ssh -i {path_to_key} username@ah-eu-west.onalabs.org

Generate SSH keys in github

Generate new SSH key for github ssh-keygen -t ed25519 Retrieve public key with the following command .ssh/{public_key} Add public key to Guthub and give permissions for repo access Confirm successful connection with the following command ssh git@github.com

Create a new virtual environment

Create virtual environment using python - python3 -m venv {environment_name}

Start/Stop an existing virtual environment

Activate the environment using source {environment_name}/bin/activate Deactivate the environment with deactivate

Clone this wiki locally