<p>We installed Kubeflow 1.0 on Kubernetes 1.15.16 (with Azure) and we have an issue with SSL certificate when trying to install pip package in Jupiter Notebook. The same issue also appear when trying to install directly the package from the docker container used for the Notebook Server:</p>
<p><a href="https://i.stack.imgur.com/u5Hwz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u5Hwz.png" alt="enter image description here" /></a></p>
<p>In order to provide more context about the mentioned issues, here are attached some outputs that contain the errores mentioned within.
Issues found during installation of ‘nose’ package</p>
<p>If we try:</p>
<pre><code> pip install --index-url=https://pypi.python.org/simple/ nose
</code></pre>
<p>Output is:</p>
<pre><code>WARNING: Certificate did not match expected hostname: pypi.python.org.

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError


Could not fetch URL https://pypi.python.org/simple/nose/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/nose/

ERROR: Could not find a version that satisfies the requirement nose (from versions: none)
ERROR: No matching distribution found for nose

Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pip/
</code></pre>
<p>Similar issue also happen using curl:</p>
<pre><code>! curl https://pypi.org
</code></pre>
<p>Output:</p>
<pre><code>curl: (51) SSL: no alternative certificate subject name matches target host name 'pypi.org'
</code></pre>
<p>We tried to ignore the SSL verification using</p>
<pre><code>pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org 
</code></pre>
<p>But is also raise an error:</p>
<pre><code>ERROR: Could not find a version that satisfies the requirement nose (from versions: none)
ERROR: No matching distribution found for nose
</code></pre>
<p>We dont know where to start to solve this...
Any help would be welcome!</p>
<p>Thanks a lot in advance!</p>

David N
<p>I got a same exception in kubeflow with Azure.</p>
<p>This command work for me:</p>
<pre><code>pip install xgboost -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
</code></pre>
<p>pypi.douban.com is a chinese mirror url.</p>
<p>But when I go to the next step, I got the same ssl ca error when use kubeflow sdk in python. I'm still finding solution.</p>
