What ports does pip use?

2019-04-23 17:11发布

This is hopefully a quick one to answer, I'm trying to provision a box on AWS with puppet and one of the steps involves a pip install from a requirements file. Something like this: -

/usr/local/venv/ostcms/bin/pip install -r /vagrant/requirements.txt

The step basically fails because it can't find any of the packages in the requirements file, but when I open the AWS box's security group up to allow "All Traffic" the pip step works.

I'm trying to find the port that pip uses so I can basically have that port, http and ssh open on the box and live happily ever after.

1条回答
可以哭但决不认输i
2楼-- · 2019-04-23 17:34

Pip runs on 3128 so make sure you have that open in your AWS console. Otherwise pip will get blocked when attempting to talk to PyPi (or anywhere else it cares to download from).

查看更多
登录 后发表回答