I have Django application which is getting deployed on Code Deploy.
In logs i get an error saying 'Unable to symlink '/usr/bin/python3' to '/home/ubuntu/my-env/bin/python3'
Any clues anyone, how to fix this issue,,..?
It is possible that your virtualenv exists already, hence the symlink fails to get created (again).
Check if this exists: /home/ubuntu/my-env/bin/python3.
If so, you can remove it, recreate it and then re-install you requirements like so:
rm -rf /home/ubuntu/my-env # delete existing
$(which python3) -m venv my-env # create new virtual environment
source my-env/bin/activate # activate the new environment
pip install -r requirements.txt # install existing requirements
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With