py3compile not found
sudo dpkg –configure -a sudo apt install -f –reinstall python3-minimal sudo apt install -f –reinstall python3-pip
Iordanis Kazanas – Virtual Systems Administrator
sudo dpkg –configure -a sudo apt install -f –reinstall python3-minimal sudo apt install -f –reinstall python3-pip
Common Options Configuration Files (Manifest files) Cluster Management & Context Daemonsets Deployments Events Logs Namespaces Nodes Pods Replication Controllers ReplicaSets Secrets Services Service Accounts Common Options In kubectl you can specify optional flags for use with various commands. alias – Set an alias for kubectl. alias k=kubectl echo ‘alias k=kubectl’ >>~/.bashrc -o=json – Output format in JSON. … Read more
$ kubectl label nodes worker1 node-role.kubernetes.io/worker= node/worker1 labeled $ k get nodes NAME STATUS ROLES AGE VERSION control1 Ready control-plane 19d v1.26.0 worker1 Ready worker 19d v1.26.0 worker2 Ready 19d v1.26.0
sudo setcap cap_net_raw+p /bin/ping
kubectl get nodes -o jsonpath='{.items[*].status.capacity}’ | jq { “cpu”: “2”, “ephemeral-storage”: “80901592Ki”, “hugepages-1Gi”: “0”, “hugepages-2Mi”: “0”, “memory”: “4012204Ki”, “pods”: “110” }
sudo tee /etc/wsl.conf > /dev/null << EOF [network] generateResolvConf=false EOF rm /etc/resolv.conf echo -e ‘nameserver 8.8.8.8\nnameserver 8.8.4.4’ | sudo tee /etc/resolv.conf > /dev/null; sudo chattr -f +i /etc/resolv.conf;
kubectl get nodes -o jsonpath='{.items[*].status.capacity}’ | jq { “cpu”: “2”, “ephemeral-storage”: “80901592Ki”, “hugepages-1Gi”: “0”, “hugepages-2Mi”: “0”, “memory”: “4012204Ki”, “pods”: “110” }
pycuda fatal error: pyconfig.h: No such file or directory sudo apt-get install python3-dev pip3 install pycuda
sudo apt install python3.11-venv python3 -m venv my-project-env source ~/my-project-env/bin/activate (my-project-env) $ Once you are done with your work to deactivate the environment, simply type deactivate and you will return to your normal shell. deactivate
Check python version on terminal: python –version Execute this command to switch to python 3.11: sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.11 1 Check python version: python –version