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

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

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

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

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

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

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

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

How to Install PyTorch with CUDA 9.1

PyTorch is an extremely popular Deep Learning framework that supports the latest CUDA by default, but what if you want to use PyTorch with CUDA 9.1? If you have not upgraded NVIDIA driver or are unable to upgrade CUDA due to lack of root access, an older version such as CUDA 9.1 will cause you […]

How to Install PyTorch with CUDA 9.0

PyTorch is a very popular Deep Learning framework which by default supports the latest CUDA, but what if you want to use PyTorch with CUDA 9.0? If you haven’t updated NVIDIA driver or can not upgrade CUDA due to lack of root access, an old version like CUDA 9.0 will cause you to settle down. […]

How to Install PyTorch with CUDA 9.2

PyTorch is a well established Deep Learning framework that supports the newest CUDA by default but what if you want to use PyTorch with CUDA 9.2? Whether you have not updated NVIDIA driver or are unable to update CUDA due to lack of root access, an outdated version like CUDA 9.2 would force you to […]