Python package installation failing using pip with WSS Agent active
search cancel

Python package installation failing using pip with WSS Agent active

book

Article ID: 370942

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

Python package installation failing using pip with WSS Agent active with selective intercept enabled

OR

Not able to install python libraries

Environment

WSS Agent active with Selective intercept enabled

Cause

pip is not following PAC file or system defined proxy setting properly while downloding package and instead sending traffic direct which is potentially getting blocked by corporate firewall.

Resolution

To install new package using pip via Cloud SWG proxy when WSS Agent is operating in slective intercept mode use the following command 

pip install --proxy http://ep.threatpulse.net:80 <package_name>

Important note: replace <package_name> with desired package you want to install using pip