I spent way too long fighting a "missing" package that was actually right in front of me. 🤦♂️ I was trying to get a new Agentic AI project started using strands-agents, and I kept hitting “ERROR: No matching distribution found for strands-agents.” I knew I had Python 3.12 installed. I knew I was in a virtual environment. I even checked my path. Everything looked "fine," but nothing was working. Then I realized the 𝘀𝗶𝗹𝗹𝘆 mistake I made. When I created the environment, I typed: python3 -m venv .venv 𝗧𝗵𝗲 𝗣𝗿𝗼𝗯𝗹𝗲𝗺: On macOS, python3 defaults to the system’s factory version (3.9.6). So, even though I thought I was working on newer version (python 3.12), I had accidentally built a "new" environment on older version (python 3.9). The library I needed requires python 3.10+, so pip just gave up on me. Also the (.venv) was not visible in my terminal due to some actions I had performed during the debugging (issue in the .zshrc file). The fix was 10 seconds of typing: • Delete the old env: rm -rf .venv • Be specific: python3.12 -m venv .venv • Fix my .zshrc so I can actually see the (.venv) bracket again for some peace of mind. 𝗡𝗼𝘁𝗲 𝘁𝗼 𝘀𝗲𝗹𝗳: Don't trust the python3 alias. Be specific with your versions or your dependencies will let you know about it the hard way. #Python #Coding #AI #DevOps #SoftwareDevelopment
these environments can get tricky, glad you learned it the hard way ;)
I also faced this same 😂 Its amazing that your have mentioned...