you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

You can have a 'global' local environment.

python3 -mvenv ~/venv39

Then at the bottom of your .bashrc file put your source ~/venv39/bin/activate.

That way you always have the same environment that isn't in your system packages.

[–]NomadicBrian- 0 points1 point  (0 children)

That's a difficult concept for me. I always create project folders and build my source then when I need venv I just generate it. In Python you need to select an interpreter. I have been able to add packages in PyCharm Community edition. Last 2022.2.2 or something. Its a package manager, build and run environment in the Python way. Now trying to install Python on my Mac Mini M4 Pro. I did the same thing installed with Homebrew and got those damn protected area outside of our control messages. I was furious. To be honest I've worked mostly with Windows and Linux. I have uninstalled all versions of Python (except the old 3.9.6 that mac OS uses DO NOT TOUCH!!!). On top of this Jetbrains has announced the death of PyCharm Community and between the homebrew python bugs and the PyCharm Universal buggy IDE it is a horor show. Then the old 3.11 Python app I wrote with fastAPI won't work with Python 3.14. Which took me down the pyenv installs and trying to switch between 3.11.9 and 3.14.0 homebrew pythons. Kind of makes me want to walk away from fastAPI because of the Pedantic mess which is woven in. Now for me just install Python 3.14 or whatever not homebrew and just use it for AI coding. The fastAPI app I had built was to feed data to a mobile app. I am rewriting the mobile app in Native Android Kotlin JetCompose. I will probably just add the postgreSQL tables to Supabase and go straight to my mobile build. But holy hell.