Posts

Showing posts from December, 2025

Python--set up and use UV in linux (Raspberry Pi)

12/7/2025 10:26:33 I am running "Trixie" version of Raspberry Pi install lite  ======== #hint: to make my SSH terminal not look crap, make sure to use UTF-8 encoding (I use secureCRT9.6 and properties > appearace > encoding default is "automatic" which isn't working) #install uv  apt update apt install curl #needed for next command #install uv using less HD space vs using pip #alternate/better way (from chatGPT--assumes curl is installed) curl -LsSf https://astral.sh/uv/install.sh | sh ===== #SET PATH needed for terminal app to find uv when you try to run it #put into path--for rpi I could skip this step and just restart bash; not sure w othr distros echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc #for some distros .local above is replaced by .cargo #restart bash   bash   #is uv working?  uv #CREATE NEW PROJECT #cd to ~ you should do the next command from your home dir. uv init ide-test-uv  #replace ide-test-uv with name of...

Installing Python virtual environments on Windows using pyenv and vscode's terminal Salesforce tix 8868

  3/14/2025 05:44:37 https://www.youtube.com/watch?v=Zn5tmx0ynw8 This Alejandro video is for Mac, how about Windows there, bud? (winget is like apt install for Windows--did you know that? i have used it for PSH but not for the W11 OS at large It does not abstract PATH changes however it seems....at least for installing python) We want to install pyenv windows port. pyenv is not native to windows. https://github.com/pyenv-win/pyenv-win  #home page for pyenv-win port. Powershell install didn't work--used git to install. #First install git. From terminal elevated to local admin winget install git.git #followed instructions here. https://github.com/pyenv-win/pyenv-win/blob/master/docs/installation.md#git-commands #install using git. git clone  https://github.com/pyenv-win/pyenv-win.git  "$HOME\.pyenv" #set PATH Variables using these 4 statements from terminal run as local admin [System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPRO...

How to use UV (windows)-- CL notes from Salesforce ticket 8869

 UV replaces things like pip and pyenv, it is one tool to do most everything for interpreter management, virtual env, and adding packages--all the basic Python "use venvs and leave your system python alone" necessities. This ticket goes over installing UV on Windows, working within virtual environments, and using VSCODE as IDE Your steps will vary if: --You are not using Windows as OS --You are not using VSCODE as IDE --You are not using VENVs ============= DO THIS FROM ELEVATED CMD PROMPT IN WINDOWS! 3/14/2025 08:41:34 Good link for UV https://www.youtube.com/watch?v=Zn5tmx0ynw8 good vid: https://www.youtube.com/watch?v=AMdG7IjgSPM **is UV already installed?** from cmd or terminal run uv if it throws up a "here are UV commands you can use" you are good to go. If not, keep reading about how to install. **INSTALL UV AND ADD TO WINDOWS SYSTEM PATH*** #install uv from "system" python using PIP (not sure if this is the best way to do it but it works) python -m...