If you are working in a corporate environment where internet access is routed through a proxy, you need to configure the appropriate proxy settings for tools and scripts to work correctly.
This is supported using proxy configuration through inference-config.cfg file
-
Open the configuration file:
inference-config.cfg
-
Add the following three environment variables with your proxy details:
http_proxy="http://your.proxy.server:port" https_proxy="http://your.proxy.server:port" no_proxy="localhost,127.0.0.1,example.local"
Note: Make sure to include any internal domains or IPs in
no_proxythat should bypass the proxy.
http_proxy="http://proxy.corporate.com:8080"
https_proxy="http://proxy.corporate.com:8080"
no_proxy="localhost,127.0.0.1,.mycompany.com"To unset proxy from apt, please remove proxy configurations from below file sudo nano /etc/apt/apt.conf