While stock EC2 AMI comes with python installed, pip version is pretty old. Updating pip results in pip going out of path - it gets installed on a different location.
Here is sample script to update pip and still keep pip running:
Please make sure that it is run as root user only, otherwise it will error out with permission error
Here is sample script to update pip and still keep pip running:
#!/bin/bash
yum update -y
pip install -U pip
export PATH=$PATH:/usr/local/bin
Please make sure that it is run as root user only, otherwise it will error out with permission error
No comments :
Post a Comment