Here you will learn how to fix the ROS package repo key expiration error. You may see 2 error messages like below as you run sudo apt update. Why this happens ROS uses Debian package system that Ubuntu uses to distribute ROS packages. It is a best practice to sign the packages to make sure […]
When you run or debug a Python script in PyCharm, it shows the following error about encoding… How can I fix it? /usr/bin/python /snap/pycharm-professional/218/plugins/python/helpers/pydev/pydevconsole.py –mode=client –port=37281 Traceback (most recent call last): File “/usr/lib/python2.7/encodings/init.py”, line 74, in search_function entry = _cache.get(encoding, _unknown) AttributeError: ‘NoneType’ object has no attribute ‘get’ Process finished with exit code 1 3 […]
Here you will learn how to install PyTorch 1.6.0 through conda (Anaconda/Miniconda) and pip. PyTorch is a common Platform for Deep Learning and 1.6.0 is its latest version. Prerequisite This tutorial assumes you can run python and a package manager like pip or conda. Miniconda and Anaconda are both good, but miniconda is lightweight. We […]
How to Check PyTorch Version
Here you will learn how to check PyTorch version in Python or from command line through your Python package manager pip or conda (Anaconda/Miniconda). Prerequisite You should have installed PyTorch already, which is the assumption of this tutorial. If you have not install PyTorch, search install PyTorch — we have written a bunch of tutorial […]
How to Install Miniconda on Ubuntu 18.04
Here you will learn how to install Miniconda from command line on Ubuntu 18.04. The whole Miniconda installation only needs 3 steps, except creating and activating a conda environment. Miniconda Introduction Miniconda is an installer which is minimally free of Conda. It’s a thin, bootstrap version that includes just conda, Python, the packages they rely […]
Here you will learn how to install PyTorch 1.5 (both 1.5.0 and 1.5.1) through conda (Anaconda/Miniconda) and pip. PyTorch is a common Platform for Deep Learning. A number of open source code or papers already use 1.5 and authors are likely never going to upgrade. Typically, however, PyTorch installation guides install the newest version by default. […]
Here you will learn how to install PyTorch 1.4.0 through conda (Anaconda/Miniconda) and pip. PyTorch is a popular Deep Learning framework. A lot of open source code or papers still use 1.4 but PyTorch installation guides usually installs the latest version by default. Perhaps you already tried the latest version, but it does not work […]
How to update Pi-hole easily
Here you will learn how to update Pi-hole to the latest version from command line. You are here because you might see there is a new version showing in the footer of Pi-hole’s admin interface. But how do I update Pi-hole? In rare cases, if you haven’t installed Pi-hole, you can install it in the […]
How to Check CUDA Version on Ubuntu 18.04
Here you will learn how to check CUDA version on Ubuntu 18.04. The 3 methods are NVIDIA driver’s nvidia-smi, CUDA toolkit’s nvcc, and simply checking a file. Prerequisite Before we start, you should have installed NVIDIA driver on your system as well as Nvidia CUDA toolkit. Method 1 — Use nvidia-smi from Nvidia Linux driver […]
Written for beginners and experts, this tutorial will show you how to use the catkin_create_pkg command to create a new ROS catkin package. It will also show you how to run it and after the C++ ROS package has been created. Additionally, a boilerplate is provided for you to write a ros package. In fact, […]
Here you will learn how to check CUDA version for TensorFlow. The 3 methods are CUDA toolkit’s nvcc, NVIDIA driver’s nvidia-smi, and simply checking a file. Prerequisite Before we begin, you should have installed NVIDIA driver on your system as well as Nvidia CUDA toolkit. We also assume you have TensorFlow installed. To check if […]
This tutorial will let you know how to install PyTorch with CUDA 11.0. Unfortunately, as of 8/9/2020, there is no binary release yet, so we will install PyTorch from source. Before you start, please check your CUDA version to make sure you have installed CUDA 11.0. Step 0 — Install conda (Miniconda) It is easier […]