<html><head></head><body style="zoom: 0%;"><div dir="auto">Hi,<br></div>
<div dir="auto">I seem to remember that pycharm website provides help on using pycharm with qgis, so don't mess with your existing installations of python. <br></div>
<div dir="auto">The gist of it is that you add the pycharm startup to the end of the bat file that qgis provides for setting up all the env variables.<br></div>
<div dir="auto">Starting pycharm from the Taskbar will not set these environment for you so use the edited bat file I describe above.<br></div>
<div dir="auto">There might also be a way in your pycharm venv to pre set these env vars.<br></div>
<div dir="auto">I have a new laptop which I have not yet set up for this but if you are still stuck tomorrow,  I'll set mine up and let you know what works. <br></div>
<div dir="auto">Regards <br></div>
<div dir="auto">Zoltan <br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Sent from Blue <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On 09 Jun 2023, at 22:45, Toussaint OTTAVI via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
<div class="moz-cite-prefix">
 Le 09/06/2023 à 18:11, Toussaint OTTAVI via QGIS-User a écrit :
 <br>
</div>
<blockquote type="cite" cite="mid:acefcaf6-973b-9304-8793-13e067fa9fc8@bc-109.com">
 <font face="Calibri"> If I understand well, I'll have to write a customized startup script, with correct path (not pointing to my c:\python\lib) so that QGis can start using the included Python interpreter (and not my system-wide one). But I didn't find how to achieve that.</font>
 <br>
</blockquote>
<br>
 For now, the only workaround I found to start QGis is to remove completely my system-wide "c:\python" directory.
<br>
 Trying to configure path and PYTHONPATH with priority to the QGis folder (such as the included .bat files do) does not work. Doing so, and using SysInternals Process Monitor, we can see it still tries to load things from my "c:\python" directory, and it fails because there are incompatible library versions.
<br>
<br>
 Of course, removing my system-wide Python installation is not an acceptable workaround ;-)
<br>
<br>
 How to force QGis to use only the Python stuff in its folders and sub-folders ? Virtualenv ?
<br>
<pre class="blue"><hr><br>QGIS-User mailing list<br>QGIS-User@lists.osgeo.org<br>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></pre></blockquote></div></body></html>