HGStyle / pip-ssl-error-fixer.py

Last active 3 months ago

Like 0

HGStyle revised this gist 11 months ago · 9bd6d83

1 file changed, 3 insertions

pip-ssl-error-fixer.py (file created)
@@ -0,0 +1,3 @@
1 + import subprocess, sys
2 + cmd = "-m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org".split(' ')
3 + subprocess.run([sys.executable, *cmd, *sys.argv[1:]])