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