Posted in ai
344
7:16 am, April 2, 2026
 

using aider for command line agent coding

<div id="model-response-message-contentra2f79c9aa70ac3c6" class="markdown markdown-main-panel stronger enable-updated-hr-color" dir="ltr" aria-live="polite" aria-busy="false">
<p data-path-to-node="0">That <code data-path-to-node="0" data-index-in-node="5">externally-managed-environment</code> error is actually a built-in safety feature in newer versions of Linux Mint (and Ubuntu/Debian). It stops <code data-path-to-node="0" data-index-in-node="142">pip</code> from installing packages globally, which prevents accidental conflicts with core system tools.</p>
<p data-path-to-node="1">To fix this, you just need to install <code data-path-to-node="1" data-index-in-node="38">pipx</code> using Linux Mint's system package manager (<code data-path-to-node="1" data-index-in-node="86">apt</code>) instead of <code data-path-to-node="1" data-index-in-node="102">pip</code>.</p>
<p data-path-to-node="2">Here is how to get past that error and finish your setup:</p>
<h3 data-path-to-node="3">Step 1: Install <code data-path-to-node="3" data-index-in-node="16">pipx</code> the Linux Mint Way</h3>
<p data-path-to-node="4">Open your laptop's terminal and run these commands:</p>
<div class="code-block ng-tns-c2827611141-117 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwibvpKGttCTAxUAAAAAHQAAAAAQhgE">
<div class="code-block-decoration header-formatted gds-title-s ng-tns-c2827611141-117 ng-star-inserted"><span class="ng-tns-c2827611141-117">Bash</span>
<div class="buttons ng-tns-c2827611141-117 ng-star-inserted">&nbsp;</div>
</div>
<div class="formatted-code-block-internal-container ng-tns-c2827611141-117">
<div class="animated-opacity ng-tns-c2827611141-117">
<pre class="ng-tns-c2827611141-117"><code class="code-container formatted ng-tns-c2827611141-117" role="text" data-test-id="code-content">sudo apt update
sudo apt install pipx
</code></pre>
</div>
</div>
</div>
<p data-path-to-node="6">Once that finishes, you need to ensure that applications installed by <code data-path-to-node="6" data-index-in-node="70">pipx</code> can be found by your system:</p>
<div class="code-block ng-tns-c2827611141-118 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwibvpKGttCTAxUAAAAAHQAAAAAQhwE">
<div class="code-block-decoration header-formatted gds-title-s ng-tns-c2827611141-118 ng-star-inserted"><span class="ng-tns-c2827611141-118">Bash</span>
<div class="buttons ng-tns-c2827611141-118 ng-star-inserted">&nbsp;</div>
</div>
<div class="formatted-code-block-internal-container ng-tns-c2827611141-118">
<div class="animated-opacity ng-tns-c2827611141-118">
<pre class="ng-tns-c2827611141-118"><code class="code-container formatted ng-tns-c2827611141-118" role="text" data-test-id="code-content">pipx ensurepath
</code></pre>
</div>
</div>
</div>
<p data-path-to-node="8"><strong data-path-to-node="8" data-index-in-node="0">Important:</strong> After running <code data-path-to-node="8" data-index-in-node="25">ensurepath</code>, close your terminal window and open a new one so the path changes take effect.</p>
<h3 data-path-to-node="9">Step 2: Install Aider</h3>
<p data-path-to-node="10">Now that <code data-path-to-node="10" data-index-in-node="9">pipx</code> is properly installed, you can use it to install Aider in an isolated, safe environment:</p>
<div class="code-block ng-tns-c2827611141-119 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwibvpKGttCTAxUAAAAAHQAAAAAQiAE">
<div class="code-block-decoration header-formatted gds-title-s ng-tns-c2827611141-119 ng-star-inserted"><span class="ng-tns-c2827611141-119">Bash</span>
<div class="buttons ng-tns-c2827611141-119 ng-star-inserted">&nbsp;</div>
</div>
<div class="formatted-code-block-internal-container ng-tns-c2827611141-119">
<div class="animated-opacity ng-tns-c2827611141-119">
<pre class="ng-tns-c2827611141-119"><code class="code-container formatted ng-tns-c2827611141-119" role="text" data-test-id="code-content">pipx install aider-chat
</code></pre>
</div>
</div>
</div>
<h3 data-path-to-node="12">Step 3: Verify Your Server Setup</h3>
<p data-path-to-node="13">The steps you pasted for configuring your Proxmox server are exactly right. Just make sure you have actually downloaded the Qwen model on your server by running this command on the <strong data-path-to-node="13" data-index-in-node="181">server</strong>:</p>
<div class="code-block ng-tns-c2827611141-120 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwibvpKGttCTAxUAAAAAHQAAAAAQiQE">
<div class="code-block-decoration header-formatted gds-title-s ng-tns-c2827611141-120 ng-star-inserted"><span class="ng-tns-c2827611141-120">Bash</span>
<div class="buttons ng-tns-c2827611141-120 ng-star-inserted">&nbsp;</div>
</div>
<div class="formatted-code-block-internal-container ng-tns-c2827611141-120">
<div class="animated-opacity ng-tns-c2827611141-120">
<pre class="ng-tns-c2827611141-120"><code class="code-container formatted ng-tns-c2827611141-120" role="text" data-test-id="code-content">ollama pull qwen2.5-coder:3b
</code></pre>
</div>
</div>
</div>
<h3 data-path-to-node="15">Step 4: Connect and Launch</h3>
<p data-path-to-node="16">Back on your <strong data-path-to-node="16" data-index-in-node="13">laptop</strong>, navigate to the folder containing the code you want to work on.</p>
<p data-path-to-node="17">Set the environment variable to point to your server (replace the IP if yours is different), and launch Aider:</p>
<div class="code-block ng-tns-c2827611141-121 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwibvpKGttCTAxUAAAAAHQAAAAAQigE">
<div class="code-block-decoration header-formatted gds-title-s ng-tns-c2827611141-121 ng-star-inserted"><span class="ng-tns-c2827611141-121">Bash</span>
<div class="buttons ng-tns-c2827611141-121 ng-star-inserted">&nbsp;</div>
</div>
<div class="formatted-code-block-internal-container ng-tns-c2827611141-121">
<div class="animated-opacity ng-tns-c2827611141-121">
<pre class="ng-tns-c2827611141-121"><code class="code-container formatted ng-tns-c2827611141-121" role="text" data-test-id="code-content"><span class="hljs-built
in">export</span> OLLAMAAPIBASE=http://192.168.0.121:11434
aider --model ollama_chat/qwen2.5-coder:3b --map-tokens 1024
</code></pre>
</div>
</div>
</div>
<p data-path-to-node="19"><em data-path-to-node="19" data-index-in-node="0">(Note: I included your <code data-path-to-node="19" data-index-in-node="23">--map-tokens 1024</code> pro-tip directly in the launch command to help protect your server's 4GB VRAM limit right from the start!)</em></p>
</div>

View Statistics
This Week
11
This Month
121
This Year
194

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Ambition without knowledge is like boat on dry land.
Mr. Miyagi
Latest News
## 🚀 AI Giants Hit Bullseye: Anthropic & OpenAI Achieve Product-Market Fit Anthropic and OpenAI have reached a significant milestone, finding product-market fit with their AI technologies, which means their products effectively meet the needs of their customers, driving growth and adoption. This achievement showcases the practical value of their innovations, enabling businesses and individuals to leverage AI for enhanced productivity and efficiency. With this alignment of product and market needs, these companies are poised to transform industries and shape the future of technology.