I need the python-magic package for a Django project. However, I found out that since I am using python3, I need the python3-magic package, which I can either get using pip3 or using apt-get.
I am a macOS user, so I don't have an apt-get, and I cannot install the package using pip3. It gives me the following error when I type: pip3 install python3-magic.
ERROR: Could not find a version that satisfies the requirement python3-magic (from versions: none)
ERROR: No matching distribution found for python3-magic
Is there any way I can get this package for my Django project? No matter what I do, the package appears uninstalled on my VS Code.
If you install this through
pip3, the name of the package ispython-magic[PyPi], not, so:python3-magicIf you use
apt-get, you can work withpython3-magicandpython-magic. These are not links to a Python package, but in essence intallations scripts that will work withpip3andpiprespectively. See for example the files of thepython3-magicpackage [ubuntu-packages].