I have create an ec2 instance which has default python 2.7 installed. I have installed python 3.5.1 and I can see both directories /usr/bin/python3
and /usr/bin/python
. I have created a virtualenv using virtualenv -p python3 .env
. But when I execute pip install -r requirements.txt
for python3, it displays this error message.
Failed to establish a new connection: [Errno 101] Network is unreachable',)'
How can I fix it?
Also,
if I execute :
sudo python3 -m pip install Flask
I get -
/usr/bin/python3: No module named pip