How to Install Conda and Miniconda3 on Ubuntu 22.04 LTS James Bower, February 8, 2023April 21, 2023 This morning I find myself working on a new data mining project that relies on Conda. I ran into a few issues along the way and decided to write this up. My pain is your gain!$python3 --version Python 3.10.6Next I visited https://docs.conda.io/en/latest/miniconda.html#linux-installers to find the correct installer for my version of PythonUbuntu 22.04 LTS Conda InstallerNext bring up your terminal and put in the following.$wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.shNow we need to change the permissions of our download.$sudo chmod +x Miniconda3-py310_22.11.1-1-Linux-x86_64.shI was initially running the installer using Shell and continued to get the following error.Installing * environment... ./Miniconda3-py310_22.11.1-1-Linux-x86_64.sh: 444: [[: not found CondaFileIOError: '/home/ubuntu/miniconda3/pkgs/envs/*/env.txt'. [Errno 2] No such file or directory: '/home/ubuntu/miniconda3/pkgs/envs/*/env.txt'After doing some research I found that my issue was due to running the installer with Shell instead of Bash.$bash Miniconda3-py310_22.11.1-1-Linux-x86_64.shAnd Bob’s Your Uncle! We have a successful installation.Preparing transaction: done Executing transaction: done installation finished. Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [no] >>> yes no change /home/ubuntu/miniconda3/condabin/conda no change /home/ubuntu/miniconda3/bin/conda no change /home/ubuntu/miniconda3/bin/conda-env no change /home/ubuntu/miniconda3/bin/activate no change /home/ubuntu/miniconda3/bin/deactivate no change /home/ubuntu/miniconda3/etc/profile.d/conda.sh no change /home/ubuntu/miniconda3/etc/fish/conf.d/conda.fish no change /home/ubuntu/miniconda3/shell/condabin/Conda.psm1 no change /home/ubuntu/miniconda3/shell/condabin/conda-hook.ps1 no change /home/ubuntu/miniconda3/lib/python3.10/site-packages/xontrib/conda.xsh no change /home/ubuntu/miniconda3/etc/profile.d/conda.csh modified /home/ubuntu/.bashrc ==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Miniconda3!Now we need to modify our PATH in order for Miniconda3 to work.$export PATH=/home/ubuntu/miniconda3/bin/:$PATHNow we’ve got Conda and Miniconda3 installed on Ubuntu 22.04 LTS. Have an amazing day!And as always, thank you for taking the time to read this. If you have any comments, questions, or critiques, please reach out to me on our FREE ML Security Discord Server – HERE Python Tech CondaMiniconda
Python Python Regex Examples with Notes July 2, 2018April 21, 2023In this blog post you will learn about regular expressions (RegEx), and use Python’s re module to work with RegEx (with the help of examples). A Regular Expression (RegEx) is a sequence of characters that defines a search pattern. For loop to incorporate a regex search Regex example description for… Read More
Tech My Favorite New Toy – Nokia 770 September 2, 2008April 21, 2023So I’ve had my Nokia 770 for awhile now and I love this thing. I recently upgraded the memory in mine to 2Gigs which really improved it’s performance. I generally use it to check my email and check on quotes for various stocks and such. It’s pretty sweet. http://amzn.to/2lbKDYa And… Read More
Python How to Think About Low-Latency Development with Python November 3, 2024September 17, 2026Python is nobody’s first choice for low-latency systems. It’s interpreted, it has the GIL, and its dynamic typing adds overhead that compiled languages don’t have. Yet many of us build performance-sensitive systems in Python anyway, because the ecosystem, the iteration speed, and the team’s familiarity make it the pragmatic choice…. Read More