[QGIS-Developer] Pip install not working within QGIS with OSGeo4W v2?
tijan49 at yahoo.fr
tijan49 at yahoo.fr
Sat Jan 15 01:05:47 PST 2022
Hi Axel,
I tried with the "xlxswriter" module :
- in QGIS 3.16.15 => same error as you ;
- in QGIS 3.18.3 => success
Therefore it seems to be a bug in QGIS 3.16 ...
Have a nice day ...
Jean
Le 12/01/2022 à 23:09, Axel Hörteborn a écrit :
> Hi dev team,
>
> I might have missed something but I can't get "pip install" to work
> within QGIS I've tried a few different options on a couple of
> different windows computers.
>
> I use matplotlib, psycopg2 and reportlab within my plugin and I have
> some simple code that installs the packages for the users:
> |import sys import platform import subprocess try: import matplotlib
> except ModuleNotFoundError: print('installing matplotlib') if
> platform.system() == 'Windows': subprocess.call([sys.exec_prefix +
> '/python', "-m", 'pip', 'install', 'matplotlib']) else:
> subprocess.call(['python3', '-m', 'pip', 'install', 'matplotlib'])|
> But I get:
>
> WARNING: pip is configured with locations that require TLS/SSL,
> however the ssl module in Python is not available.
>
> WARNING: Retrying (Retry(total=4, connect=None, read=None,
> redirect=None, status=None)) after connection broken by
> 'SSLError("Can't connect to HTTPS URL because the SSL module is not
> available.")': /simple/matplotlib/
>
>
> I can install the packages from the OSGeo4W shell (after removing the
> path to a local pip server) but it would be nice if they could be
> installed automatic for the users (which works fine with QGIS
> installed by OSGeo4W v1..).
>
> Have I missed some change or is this a bug? (can someone else confirm it?)
>
> Best regards
> Axel Hörteborn
> Maintainer of GeoDataFarm
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220115/e0afcc20/attachment.html>
More information about the QGIS-Developer
mailing list