<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[import libreries notepad++ in a python script]]></title><description><![CDATA[<p dir="auto">Hi everyone! I am new in this community and using notepad++ to run python scripts. Maybe this questions is already answered but I could not find it anywhere.</p>
<p dir="auto">I have already installed notepad++ and python in my computer and also I installed NppExc to run python. Everything works fine! The real problem is when I try to import, for example, pandas and try to use it. I got the error message: no module name pandas</p>
<p dir="auto">I am running python in an activated virtualenvironment (already created and installed pandas) and I don’t know if I need to indicate it to notepad++ (like in vs code) and activate that venv to run pandas or any other library.</p>
<p dir="auto">Thanks in advance!</p>
<p dir="auto">Ismael</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25542/import-libreries-notepad-in-a-python-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 02:05:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25542.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Mar 2024 14:10:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to import libreries notepad++ in a python script on Fri, 01 Mar 2024 18:36:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/30365">@Ismael-Santana</a> said in <a href="/post/93334">import libreries notepad++ in a python script</a>:</p>
<blockquote>
<p dir="auto">I installed NppExc to run python</p>
</blockquote>
<p dir="auto">My guess without seeing any of your installation or how you did the things you say you did is that you need to updated your NppExec script to use the <code>python.exe</code> that is in the virtual environment; otherwise, you are just running the system Python, where presumably, you do not have pandas installed.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93339</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93339</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 01 Mar 2024 18:36:09 GMT</pubDate></item><item><title><![CDATA[Reply to import libreries notepad++ in a python script on Fri, 01 Mar 2024 15:27:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/30365">@Ismael-Santana</a> ,</p>
<p dir="auto">There are others here who use a lot more command-line python than I do.  And I don’t use the virtual environments, though I tried them out a few years ago, so I’ve got a vague memory of them.   I seem to remember that the virtual-env settings apply only to whatever shell you set the virtual environment from… so since Notepad++ is not inside that shell, it won’t know which environment you’ve chosen in that shell.  (Well, maybe you could close Notepad++, run the shell and set the virtual environment for that shell, then launch Notepad++ from that shell… at that point, I <em>think</em> it would inherit the virtual environment from the parent shell.)</p>
<p dir="auto">With those vague memories, if you don’t launch Notepad++ from the special shell, I think it means that you would have to do the call to choose your virtual environment from inside the NppExec script.</p>
<p dir="auto">But I could be completely misremembering how the virtual environments work, in which case you can ignore me, and hopefully someone more qualified will answer soon.  (Even if I’m right, getting a more-qualified confirmation would be appreciated… though if you see my reply before anyone else answers, you could at least give it a try.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93337</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93337</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 01 Mar 2024 15:27:22 GMT</pubDate></item></channel></rss>