Have error on 3.11.4 python

Try pip discord.py

Error
Collecting discord.py
  Using cached discord.py-2.2.3-py3-none-any.whl (1.1 MB)
Collecting aiohttp<4,>=3.7.4 (from discord.py)
  Using cached aiohttp-3.8.4.tar.gz (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      *********************
      * Accelerated build *
      *********************
      running dist_info
      creating /data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info
      writing /data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/PKG-INFO
      writing dependency_links to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/dependency_links.txt
      writing requirements to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/requires.txt
      writing top-level names to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/top_level.txt
      writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/SOURCES.txt'
      reading manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'aiohttp' anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.pyd' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      warning: no previously-included files matching '*.lib' found anywhere in distribution
      warning: no previously-included files matching '*.dll' found anywhere in distribution
      warning: no previously-included files matching '*.a' found anywhere in distribution
      warning: no previously-included files matching '*.obj' found anywhere in distribution
      warning: no previously-included files found matching 'aiohttp/*.html'
      no previously-included directories found matching 'docs/_build'
      adding license file 'LICENSE.txt'
      writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/SOURCES.txt'
      creating '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp-3.8.4.dist-info'
      error: [('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/PKG-INFO', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/PKG-INFO', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/PKG-INFO'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/not-zip-safe', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/not-zip-safe', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/not-zip-safe'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/dependency_links.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/dependency_links.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/dependency_links.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/requires.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/requires.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/requires.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/top_level.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/top_level.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/top_level.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info/SOURCES.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/SOURCES.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__/SOURCES.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-hj0gzbnt/aiohttp.egg-info.__bkp__'")]
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

In order to preserve formatting, please select any code or traceback that you post and then click the </> button.

You have not said which OS or version of Python you’re using, but I’m guessing Linux and some version of Python 3.

Try using pip3, because pip might be for Python 2.

I use linux, and pip3 don’t help me bc same error

Seems to be a “permission denied” error. Are you installing in a virtual environment or globally?

I install termux for Android itd virtual linux