If you’ve not had a chance yet, please look at the #start-here category. It has some very useful information on using the forum and tips on Fedora usage.
What package did you try to install? Is it python3-devel?
A quick dnf search got me the following result
[t0xic0der@ToxicDragon ~]$ sudo dnf search libxml2
Last metadata expiration check: 0:33:43 ago on Sun 24 May 2020 11:43:47 PM IST.
======================== Name Exactly Matched: libxml2 =========================
libxml2.x86_64 : Library providing XML and HTML support
libxml2.i686 : Library providing XML and HTML support
======================= Name & Summary Matched: libxml2 ========================
libxml2-static.i686 : Static library for libxml2
libxml2-static.x86_64 : Static library for libxml2
python3-libxml2.x86_64 : Python 3 bindings for the libxml2 library
mingw32-libxml2.noarch : MinGW Windows libxml2 XML processing library
mingw64-libxml2.noarch : MinGW Windows libxml2 XML processing library
perl-Alien-Libxml2.x86_64 : Install the C libxml2 library on your system
============================ Name Matched: libxml2 =============================
libxml2-devel.i686 : Libraries, includes, etc. to develop XML and HTML
libxml2-devel.x86_64 : Libraries, includes, etc. to develop XML and HTML
mingw32-libxml2-static.noarch : Static version of the MinGW Windows XML
: processing library
mingw64-libxml2-static.noarch : Static version of the MinGW Windows XML
: processing library
=========================== Summary Matched: libxml2 ===========================
perl-XML-LibXML.x86_64 : Perl interface to the libxml2 library
libxml++.x86_64 : C++ wrapper for the libxml2 XML parser library
ghc-libxml-sax.x86_64 : Haskell bindings for the libxml2 SAX interface
libxml++.i686 : C++ wrapper for the libxml2 XML parser library
libxml++30.i686 : C++ wrapper for the libxml2 XML parser library
libxml++30.x86_64 : C++ wrapper for the libxml2 XML parser library
mingw32-libxml++.noarch : MinGW Windows C++ wrapper for the libxml2 XML parser
mingw64-libxml++.noarch : MinGW Windows C++ wrapper for the libxml2 XML parser
python3-lxml.x86_64 : XML processing library combining libxml2/libxslt with the
: ElementTree API
I think there are packages available in the repo which can satisfy your usecase.
I’m not sure I understand you. Python is not a compiled language at all, so all you need is the interpreter. If one is developing against python, one needs to install the development files, which are included in python3-devel. python3 in Fedora is the version that is used for the release. For Fedora 32, it is python3.8:
$ python3 --version
This is your “system installation” of python. Since there cannot be multiple “system installations” of Python versions, if you are looking to develop against another version of python, you must set up a virtual environment and do it there.
This applies to all python packages. However, you should mention that if people use pip, they should do it in a virtual environment so that it does not affect the system installation of Python which is needed by all the applications installed in Fedora, including dnf.
Python 3 includes virtual environments, so you can just use this:
$ python3 -m virtualenv new
Using base prefix '/usr'
New python executable in /home/asinha/new/bin/python3
Also creating executable in /home/asinha/new/bin/python
Installing setuptools, pip, wheel...
The activate with `source ...`.
If you’d like to use a virtual environment manager, pew is a good one:
$ sudo dnf install pew
$ pew new new-virtuanenv
# For more information on pew:
$ man pew
virtual environments allow you to have independent development spaces where you can install the necessary dependencies without causing conflicts between each other. Please read the tutorial to learn more. This isn’t quite within the scope of this forum
Aye, @azaretdodo, just a note mostly for the benefit of newcomers that may see this thread: this isn’t a ticket in the traditional sense of a “support ticket” that you file when you contact your IT people for support. This is a forum where community members spend their free time to voluntarily help each other.