How To Install python3-asttokens on Fedora 36
Introduction
In this tutorial we learn how to install python3-asttokens
on Fedora 36.
What is python3-asttokens
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them. This makes it possible for tools that work with logical AST nodes to find the particular text that resulted in those nodes, for example for automated refactoring or highlighting.
We can use yum
or dnf
to install python3-asttokens
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-asttokens.
Install python3-asttokens on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-asttokens
using dnf
by running the following command:
sudo dnf -y install python3-asttokens
Install python3-asttokens on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-asttokens
using yum
by running the following command:
sudo yum -y install python3-asttokens
How To Uninstall python3-asttokens on Fedora 36
To uninstall only the python3-asttokens
package we can use the following command:
sudo dnf remove python3-asttokens
python3-asttokens Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/asttokens
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/asttokens-2.0.5-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/asttokens/__init__.py
/usr/lib/python3.10/site-packages/asttokens/__pycache__
/usr/lib/python3.10/site-packages/asttokens/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/asttokens.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/asttokens.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/line_numbers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/line_numbers.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/mark_tokens.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/mark_tokens.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/asttokens/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/asttokens/asttokens.py
/usr/lib/python3.10/site-packages/asttokens/line_numbers.py
/usr/lib/python3.10/site-packages/asttokens/mark_tokens.py
/usr/lib/python3.10/site-packages/asttokens/util.py
/usr/lib/python3.10/site-packages/asttokens/version.py
/usr/share/doc/python3-asttokens
/usr/share/doc/python3-asttokens/README.rst
/usr/share/licenses/python3-asttokens
/usr/share/licenses/python3-asttokens/LICENSE
References
Summary
In this tutorial we learn how to install python3-asttokens
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).