VarHowto Editor

Categories
Python

How to fix PyCharm AttributeError: ‘NoneType’ object has no attribute ‘get’

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 […]

Categories
Python PyTorch

How to install PyTorch 1.6.0 (conda & pip)

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 […]

Categories
PyTorch

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 […]

Categories
Python

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 […]

Categories
PyTorch Python

How to install PyTorch 1.5 (conda & pip)

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. […]

Categories
Python PyTorch

How to install PyTorch 1.4.0 easily (conda & pip)

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 […]

Categories
Raspberry Pi

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 […]

Categories
Linux

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 […]

Categories
ROS

C++ ROS catkin Package: Create, Write and Run it

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, […]

Categories
Python

How to Check TensorFlow CUDA Version Easily

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 […]

Categories
PyTorch Python

How to Install PyTorch with CUDA 11.0

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 […]

Categories
Python

How to Install pandas on Ubuntu 20.04

Here you will learn 3 ways to install pandas on Ubuntu 20.04 through apt or pip or conda. Specifically, you will also learn how to install Python 3 and Python package manager, either pip or conda (Anaconda or Miniconda). pandas & Ubuntu 20.04 Pandas is a fast, efficient, modular and easy-to-use open source framework for […]