CiscoDevNet / yang-explorer

An open-source Yang Browser and RPC Builder Application
Apache License 2.0
438 stars 177 forks source link

Installation behind a proxy #54

Closed ghost closed 7 years ago

ghost commented 7 years ago

On ubuntu and behind a proxy I had to edit the setup.sh to add proxy information at this line:

echo "Installing dependencies .."
pip install **--proxy=http://my.proxy.com:8080** -r requirements.txt

You can add an option in the bash script to allow the user to provide a proxy.

robertcsapo commented 7 years ago

You could use environment variables in your session

export http_proxy="http://<proxy.server>:<port>"

as pip honors http_proxy/https_proxy environment variables

ghost commented 7 years ago

I tried it before but did not work, maybe a typo in my env variable value!