# Python, Jython, CPython, Libraries, Pip, and Python 2.7 vs 3 - A quick primer

**URL:** <https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201>\
**Category:** Ignition\
**Created:** [February 9, 2021, 6:26pm UTC](https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201 "2021-02-09T18:26:17Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [September 2, 2021, 4:48am UTC](https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201/25 "2021-09-02T04:48:54Z")

</div>

The ability to use pip under Jython 2.7.2 appears to be fundamentally broken by the servers requiring SNI. ☹

I’ve got standalone Jython installed and working, but calls to `jython -m pip install` for any library fail for `ERROR: No matching distribution found for requests`. Running again with max verbosity will show a snippet like this in the output:

```auto
  Getting page https://pypi.org/simple/requests/
  Looking up "https://pypi.org/simple/requests/" in the cache
  Request header has "max_age" as 0, cache bypassed
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/requests/ HTTP/1.1" 403 16
  Status code 403 not in (200, 203, 300, 301)
  Could not fetch URL https://pypi.org/simple/requests/: 403 Client Error: SNI is required for url: https://pypi.org/simple/requests/ - skipping
  ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-va_h9x'
ERROR: No matching distribution found for requests

```

Some quick searching around implies that Python pre-2.7.9 didn’t support SSL SNI, which implies Jython 2.7.2 probably doesn’t, and it looks like the pypi servers have been moved behind proxies using SNI.

Does anyone know a workaround for this issue?

---

_[View the full topic](https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201)._
