Error of the tensorflow again

I am setting up macbook air (m1,2020). When I try to install the tensorflow, it appears "zsh: illegal hardware instruction python". I have took many forums examples and finally fixed the error. However, when I try to install a package called "EQTransformer", the error appears again. I dont have any idea to solve this.

Hi @lamlam26, which OS are you using? It seems like when you do pip install EQTransformer, its trying to install "tensorflow" not "tensorflow-macos". I was looking at the setup.py for EQTransformer here: (is this the correct one?).

setup(
    name="EQTransformer",
    author="S. Mostafa Mousavi",
    version="0.1.61",
    author_email="smousavi05@gmail.com",
    description="A python package for making and using attentive deep-learning models for earthquake signal detection and phase picking.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/smousavi05/EQTransformer",
    license="MIT",
    packages=find_packages(),
    keywords='Seismology, Earthquakes Detection, P&S Picking, Deep Learning, Attention Mechanism',
    install_requires=[
	'pytest',
	'numpy==1.20.3',
	'keyring>=15.1', 
	'pkginfo>=1.4.2',
	'scipy==1.4.1', 
	'tensorflow==2.5.1',    <== This is installing tensorflow 2.5.1, not tensorflow-macos==2.5.0
	'keras==2.3.1', 
	'matplotlib', 
	'pandas',
	'tqdm==4.48.0', 
	'h5py==3.1.0', 
	'obspy',
	'jupyter'], 

    python_requires='>=3.6',
)

Its seems to be installing a different versions of the packages and the Tensorflow. This is not supported through tensorflow-macos. You can change the setup.py to pull tensorflow-macos and then it will install the right dependencies.

Error of the tensorflow again
 
 
Q