On windows, I have a simple conda env named pypitester
.
On a linux I am hosting a private pypiserver
which loads when I call it on http://{IP}:8888/simple/
:
I can load the url and see the contents. I was able to upload to my server using twine
using:
twine upload --repository-url http://{IP}:8888 {PATH_TO_PROJ}/dist/
On windows, I updated my C:\ProgramData\pip\pip.ini
to contain:
[global]
trusted-host = pypi.org files.pythonhosted.org {IP}:8888
extra-index-url = http://{IP}:8888/simple
Within a new conda env, I call:
>set https_proxy=http://{IP}:8888
>set http_proxy=http://{IP}:8888
Followed by:
>pip install MyPrivateLib
I get back:
>pip install MyPrivateLib
Looking in indexes: https://pypi.org/simple, http://{IP}:8888/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
ERROR: Could not find a version that satisfies the requirement MyPrivateLib (from versions: none)
ERROR: No matching distribution found for MyPrivateLib
When I load http://{IP}:8888/simple/myprivatelib/
in a browser, it loads immediately.
If I specify a version I see listed in simple (eg: 1.0.1) I get:
ERROR: Could not find a version that satisfies the requirement MyPrivateLib==1.0.1 (from versions: none)
ERROR: No matching distribution found for MyPrivateLib==1.0.1
The questions being:
- How do I resolve this?
- Am I doing something wrong generally speaking?
I want to host private repost internally and be able to install them on the fly in a verion-specificied way.