Pip install discord py error

problem with pip and discord.py #1274 Comments when i install discord.py in my pc i have this error: Microsoft Windows [Versione 10.0.17134.1] (c) 2018 Microsoft Corporation. Tutti i diritti sono riservati. C:Usersadmin>python —version Python 2.7.15 C:Usersadmin>pip —version pip 10.0.1 from c:python27libsite-packagespip (python 2.7) C:Usersadmin>pip install discord.py Collecting discord.py Using cached https://files.pythonhosted.org/packages/97/3c/2a97b47fd8839f8863241857bbd6a3998d1de1662b788c8d9322e5a40901/discord.py-0.16.12.tar.gz Collecting aiohttp =1.0.0 […]

Содержание

  1. problem with pip and discord.py #1274
  2. Comments
  3. Windows
  4. Linux
  5. Can’t install discord.py python 3.8.6 #5950
  6. Ошибка при установке библиотеки discord.py
  7. Gladio
  8. При pip install discord.py выдаёт ошибку PEP 517 питон скачал вчера но так и не смог поработать что делать?
  9. ImportError: No module named ‘discord’ #228
  10. Comments

problem with pip and discord.py #1274

when i install discord.py in my pc i have this error:
Microsoft Windows [Versione 10.0.17134.1]
(c) 2018 Microsoft Corporation. Tutti i diritti sono riservati.

C:Usersadmin>python —version
Python 2.7.15

C:Usersadmin>pip —version
pip 10.0.1 from c:python27libsite-packagespip (python 2.7)

C:Usersadmin>pip install discord.py
Collecting discord.py
Using cached https://files.pythonhosted.org/packages/97/3c/2a97b47fd8839f8863241857bbd6a3998d1de1662b788c8d9322e5a40901/discord.py-0.16.12.tar.gz
Collecting aiohttp =1.0.0 (from discord.py)
Using cached https://files.pythonhosted.org/packages/09/5a/7b81ea8729d41f44c6fe6a116e466c8fb884950a0061aa3768dbd6bee2f8/aiohttp-1.0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File «», line 1, in
File «c:usersadminappdatalocaltemppip-install-y7k5jkaiohttpsetup.py», line 60, in
raise RuntimeError(«aiohttp requires Python 3.4.2+»)
RuntimeError: aiohttp requires Python 3.4.2+

what did i do wrong?

The text was updated successfully, but these errors were encountered:

This library requires Python 3.4+, as mentioned in the README.You have 2.7.15 installed instead.
Install the correct version ( 3.6.5 at present) from the downloads page, and optionally remove your Python 2 installation to avoid confusion.

You need at least Python 3.4 to use Discord.py as mentioned in the readme

Hi, I’m having this issue on Python 3.7. Does this mean I’ll need to downgrade?

The requirements for discord.py are >=3.4 and

The version of the library on pip does not work with python 3.7, you’ll either have to downgrade your python or use the rewrite branch of the library.

To install the rewrite version of the library, use this command:

In the future, please don’t necro issues, you should join either the official discord.py server or the Discord API server, as the README recommends.

Apparently it doesn’t work on 3.6 either because I just installed that and same problem.

Please join the official discord.py server using the link I sent above to get more help.

I’m having the same issue. This library does NOT work on Python 3.6, confirmed by me.

As I am stating for the fifth time, please do NOT ask for help here, use the support server instead at https://discord.gg/r3sSKJJ.

Sir i would like to point out that you are incorrect, both versions of discord.py are compatible with python 3.6 @JavascriptHero if you would like support join the discord.py server
edit:
never call yourself the python hero

@JavascriptHero it does work, confirmed by me and about 5K people

@Elxafil Were you able to resolve it on your 3.6 installation?

@JavascriptHero please join the discord.py support server for more help https://discord.gg/r3sSKJJ

I’m in 100 servers already.

Either leave one and join the discord.py support server or we are not going to help via github issues.
https://discord.gg/r3sSKJJ

This error is raised by setuptools when installing aiohttp because it declares the minimum version the library is compatible with, and your install target is not within that bracket.

Since even the most current version of aiohttp at this moment still supports >=3.5.3 , this error appearing indicates that the real problem isn’t that you don’t have a suitable version, but that instead you have multiple versions on your machine and you’re just installing to the wrong one.

Rather than using a generic executable like python or just py , try using one that explicitly tells your system what you’re looking for:

Windows

Windows installs of Python come with the py launcher by default, which allows you to specify the version you’re looking to execute a script or module on.

If you don’t know what versions you have, newer versions of the py launcher allow you to type py -0 to see your full version list.

Linux

On Linux, executables like python are just symbolic links to the longer, full executable names. If we need a specific version, we can just use its full name.

If you don’t know what versions you have, try checking what executables are on your system using a command like ls -l /usr/bin | grep python . If that doesn’t work, using which python will tell you where python leads, and you can try on that folder instead.

Источник

Can’t install discord.py python 3.8.6 #5950

Microsoft Windows [Version 10.0.19041.508]
(c) Корпорация Майкрософт (Microsoft Corporation), 2020. Все права защищены.

C:UsersВлад>pip install discord
Collecting discord
Downloading discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.0.1
Using cached discord.py-1.5.0-py3-none-any.whl (699 kB)
Collecting aiohttp =3.6.0
Using cached aiohttp-3.6.3.tar.gz (1.1 MB)
Installing build dependencies . done
Getting requirements to build wheel . done
Preparing wheel metadata . error
ERROR: Command errored out with exit status 1:
command: ‘C:UsersВладAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe’ ‘C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:Users46AD 1AppDataLocalTemptmpkldqf00s’
cwd: C:UsersВладAppDataLocalTemppip-install-qyh3d0eeaiohttp
Complete output (24 lines):
running dist_info
creating C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-info
writing C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infoPKG-INFO
writing dependency_links to C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infodependency_links.txt
writing requirements to C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-inforequires.txt
writing top-level names to C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infotop_level.txt
writing manifest file ‘C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xc2 in position 0: invalid continuation byte (sitecustomize.py, line 21)
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’
writing manifest file ‘C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.egg-infoSOURCES.txt’
creating ‘C:UsersВладAppDataLocalTemppip-modern-metadata-_74h3gl3aiohttp.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command errored out with exit status 1: ‘C:UsersВладAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe’ ‘C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:Users46AD 1AppDataLocalTemptmpkldqf00s’ Check the logs for full command output.
WARNING: You are using pip version 20.2.1; however, version 20.2.4 is available.
You should consider upgrading via the ‘C:UsersВладAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe -m pip install —upgrade pip’ command.

I have tried to reinstall python but it not helped.

Beta Was this translation helpful? Give feedback.

Источник

Ошибка при установке библиотеки discord.py

Gladio

Новичок

1
AppDataLocalTemptmp_p9mfb4g’
cwd: C:UsersникAppDataLocalTemppip-install-av3mffc5aiohttp
Complete output (24 lines):
running dist_info
creating C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-info
writing C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoPKG-INFO
writing dependency_links to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infodependency
_links.txt
writing requirements to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-inforequires.txt
writing top-level names to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infotop_level.t
xt
writing manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xed in position 0: invalid continuation byte (sitecust
omize.py, line 7)
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’
writing manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
creating ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command errored out with exit status 1: ‘c:usersникappdatalocalprogramspythonpython38-32python.exe’ ‘c:u
sersникappdatalocalprogramspythonpython38-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata
_for_build_wheel ‘C:Users6FC5

1AppDataLocalTemptmp_p9mfb4g’ Check the logs for full command output.

Источник

При pip install discord.py выдаёт ошибку PEP 517 питон скачал вчера но так и не смог поработать что делать?

Building wheel for multidict (PEP 517) . error
ERROR: Command errored out with exit status 1:
command: ‘c:usersjaynaappdatalocalprogramspythonpython39python.exe’ ‘c:usersjaynaappdatalocalprogr
amspythonpython39libsite-packagespip_vendorpep517_in_process.py’ build_wheel ‘C:UsersjaynaAppDataLocal
Temptmpegflpe29′
cwd: C:UsersjaynaAppDataLocalTemppip-install-3bhgwkbnmultidict
Complete output (40 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9multidict
copying multidict_abc.py -> buildlib.win-amd64-3.9multidict
copying multidict_compat.py -> buildlib.win-amd64-3.9multidict
copying multidict_multidict_base.py -> buildlib.win-amd64-3.9multidict
copying multidict_multidict_py.py -> buildlib.win-amd64-3.9multidict
copying multidict__init__.py -> buildlib.win-amd64-3.9multidict
running egg_info
writing multidict.egg-infoPKG-INFO
writing dependency_links to multidict.egg-infodependency_links.txt
writing top-level names to multidict.egg-infotop_level.txt
reading manifest file ‘multidict.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files matching ‘*.pyc’ found anywhere in distribution
warning: no previously-included files found matching ‘multidict_multidict.html’
warning: no previously-included files found matching ‘multidict*.so’
warning: no previously-included files found matching ‘multidict*.pyd’
warning: no previously-included files found matching ‘multidict*.pyd’
no previously-included directories found matching ‘docs_build’
writing manifest file ‘multidict.egg-infoSOURCES.txt’
copying multidict__init__.pyi -> buildlib.win-amd64-3.9multidict
copying multidict_multidict.c -> buildlib.win-amd64-3.9multidict
copying multidictpy.typed -> buildlib.win-amd64-3.9multidict
creating buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibdefs.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibdict.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibistr.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibiter.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibpair_list.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibviews.h -> buildlib.win-amd64-3.9multidict_multilib
running build_ext
building ‘multidict._multidict’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with «Microsoft C++ Build Tools»: https://visual
studio.microsoft.com/visual-cpp-build-tools/

P/S если вдруг кто то ответит можете развёрнутый ответ дать

Источник

ImportError: No module named ‘discord’ #228

I have installed the module for discord properly, using python3.5 but when I compile my file, i get the above error. What do I do to fix it

The text was updated successfully, but these errors were encountered:

Clearly you didn’t install it properly. Check if your interpreter’s pip is the correct one. You might have installed it for python2.7 but running it under python3 etc.

python3 -m pip install discord.py

You both likely have a folder named discord in your project folder. Delete it. Rerun the command. This is probably a case of local overrides. To verify, move out of your project directory entirely and run the following commands:

If this works with no errors, you have a local override in your project. Delete the discord folders in there.

Sorry to necro this, but I’m getting the same issue. When I run python3 , then import discord , I get no errors (or text in my cmd window), but I definitely don’t have any directories named discord in there. Some of my package names include the string «discord», but none are just the word so it shouldn’t have an issue, right?

@ccubed very helpful, that was exactly the case with my pythonic ‘project’, thanks for the headsup.

having same issue

I haven´t solved it yet.
The error message is:
import discord
ModuleNotFoundError: No module named ‘discord’

I don´t have any Discord called folder and I have 3.7 Python and I have updated pip.

Has anyone an answer?

I’m going to try and cover most of this here so that this stops being necro’d.

Firstly for those running PyCharm, beware that it is default behaviour for it to create a virtual environment in your project.

To avoid any issues simply run your pip commands in the PyCharm terminal, located on the bottom left. This should ensure your packages are being installed to the venv. If you do not want to use the venv, you can simply select a System Interpreter: File > Settings > Project > Project Interpreter > Little Cog (Top Right) > Add > System Interpreter.

Secondly, ensure you are not creating any files or folders named discord in your project. If you have any in your project, remove them, and try again.

Thirdly, ensure you are installing discord.py to the correct place.

On Linux/Mac:
python -m pip install discord.py

For example:
python3.7 -m pip install discord.py

On Windows:
py — -m pip install discord.py

For Example:
py -3.7 -m pip install discord.py

Lastly remember, if you install a package to Python version 3.7(and you want to use it). You must run your bot under Python 3.7.

For example:
python3.7 my_bot_file.py

If you are unsure if your version of Python has an installed package, you can use, for example:
python3.7 -m pip show package_name or python3.7 -m pip freeze (to show all installed packages).

Источник

При попытке установки модуля discord.py вылетает ошибка:

C:Userskkk22>pip install discord.py
Collecting discord.py
Using cached discord.py-1.5.1-py3-none-any.whl (701 kB)
Processing c:userskkk22appdatalocalpipcachewheelsb69cbd6b99bc6ec9dab11f3756d31fb8506d3ecf07aea58b6201f539aiohttp-3.6.3-py3-none-any.whl
Collecting multidict<5.0,>=4.5
Using cached multidict-4.7.6.tar.gz (50 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Requirement already satisfied: attrs>=17.3.0 in c:userskkk22appdatalocalprogramspythonpython39libsite-packages (from aiohttp<3.7.0,>=3.6.0->discord.py) (20.3.0)
Requirement already satisfied: chardet<4.0,>=2.0 in c:userskkk22appdatalocalprogramspythonpython39libsite-packages (from aiohttp<3.7.0,>=3.6.0->discord.py) (3.0.4)
Collecting async-timeout<4.0,>=3.0
Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting yarl<1.6.0,>=1.0
Using cached yarl-1.5.1.tar.gz (173 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Requirement already satisfied: idna>=2.0 in c:userskkk22appdatalocalprogramspythonpython39libsite-packages (from yarl<1.6.0,>=1.0->aiohttp<3.7.0,>=3.6.0->discord.py) (2.10)
Building wheels for collected packages: multidict, yarl
Building wheel for multidict (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: ‘c:userskkk22appdatalocalprogramspythonpython39python.exe’ ‘c:userskkk22appdatalocalprogramspythonpython39libsite-packagespip_vendorpep517_in_process.py’ build_wheel ‘C:Userskkk22AppDataLocalTemptmpiuj__bd2’
cwd: C:Userskkk22AppDataLocalTemppip-install-7a8400hpmultidict
Complete output (40 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9multidict
copying multidict_abc.py -> buildlib.win-amd64-3.9multidict
copying multidict_compat.py -> buildlib.win-amd64-3.9multidict
copying multidict_multidict_base.py -> buildlib.win-amd64-3.9multidict
copying multidict_multidict_py.py -> buildlib.win-amd64-3.9multidict
copying multidict__init__.py -> buildlib.win-amd64-3.9multidict
running egg_info
writing multidict.egg-infoPKG-INFO
writing dependency_links to multidict.egg-infodependency_links.txt
writing top-level names to multidict.egg-infotop_level.txt
reading manifest file ‘multidict.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files matching ‘*.pyc’ found anywhere in distribution
warning: no previously-included files found matching ‘multidict_multidict.html’
warning: no previously-included files found matching ‘multidict*.so’
warning: no previously-included files found matching ‘multidict*.pyd’
warning: no previously-included files found matching ‘multidict*.pyd’
no previously-included directories found matching ‘docs_build’
writing manifest file ‘multidict.egg-infoSOURCES.txt’
copying multidict__init__.pyi -> buildlib.win-amd64-3.9multidict
copying multidict_multidict.c -> buildlib.win-amd64-3.9multidict
copying multidictpy.typed -> buildlib.win-amd64-3.9multidict
creating buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibdefs.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibdict.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibistr.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibiter.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibpair_list.h -> buildlib.win-amd64-3.9multidict_multilib
copying multidict_multilibviews.h -> buildlib.win-amd64-3.9multidict_multilib
running build_ext
building ‘multidict._multidict’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with «Microsoft C++ Build Tools»: https://visualstudio.microsoft.com/visual-cpp-buil…
—————————————-
ERROR: Failed building wheel for multidict
Building wheel for yarl (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: ‘c:userskkk22appdatalocalprogramspythonpython39python.exe’ ‘c:userskkk22appdatalocalprogramspythonpython39libsite-packagespip_vendorpep517_in_process.py’ build_wheel ‘C:Userskkk22AppDataLocalTemptmpup3oqnqy’
cwd: C:Userskkk22AppDataLocalTemppip-install-7a8400hpyarl
Complete output (35 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9yarl
copying yarl_quoting.py -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_py.py -> buildlib.win-amd64-3.9yarl
copying yarl_url.py -> buildlib.win-amd64-3.9yarl
copying yarl__init__.py -> buildlib.win-amd64-3.9yarl
running egg_info
writing yarl.egg-infoPKG-INFO
writing dependency_links to yarl.egg-infodependency_links.txt
writing requirements to yarl.egg-inforequires.txt
writing top-level names to yarl.egg-infotop_level.txt
reading manifest file ‘yarl.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files matching ‘*.pyc’ found anywhere in distribution
warning: no previously-included files matching ‘*.cache’ found anywhere in distribution
warning: no previously-included files found matching ‘yarl*.html’
warning: no previously-included files found matching ‘yarl*.so’
warning: no previously-included files found matching ‘yarl*.pyd’
no previously-included directories found matching ‘docs_build’
writing manifest file ‘yarl.egg-infoSOURCES.txt’
copying yarl__init__.pyi -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.c -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.pyi -> buildlib.win-amd64-3.9yarl
copying yarl_quoting_c.pyx -> buildlib.win-amd64-3.9yarl
copying yarlpy.typed -> buildlib.win-amd64-3.9yarl
running build_ext
building ‘yarl._quoting_c’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with «Microsoft C++ Build Tools»: https://visualstudio.microsoft.com/visual-cpp-buil…
—————————————-
ERROR: Failed building wheel for yarl
Failed to build multidict yarl
ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly

  • #1

ОС: Windows 7
Python: 3.8

ERROR: Command errored out with exit status 1:
command: ‘c:usersникappdatalocalprogramspythonpython38-32python.exe’ ‘c:usersникappdatalocalprogramsp
ythonpython38-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:Users6FC5~1
AppDataLocalTemptmp_p9mfb4g’
cwd: C:UsersникAppDataLocalTemppip-install-av3mffc5aiohttp
Complete output (24 lines):
running dist_info
creating C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-info
writing C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoPKG-INFO
writing dependency_links to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infodependency
_links.txt
writing requirements to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-inforequires.txt
writing top-level names to C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infotop_level.t
xt
writing manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xed in position 0: invalid continuation byte (sitecust
omize.py, line 7)
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’
writing manifest file ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.egg-infoSOURCES.txt’
creating ‘C:UsersникAppDataLocalTemppip-modern-metadata-g02hk523aiohttp.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command errored out with exit status 1: ‘c:usersникappdatalocalprogramspythonpython38-32python.exe’ ‘c:u
sersникappdatalocalprogramspythonpython38-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata
_for_build_wheel ‘C:Users6FC5~1AppDataLocalTemptmp_p9mfb4g’ Check the logs for full command output.

Команда: pip install discord.py

  • #2

скорее всего ошибка в кириллице в путях, c:usersникappdata — ник не нравиться

  • #3

скорее всего ошибка в кириллице в путях, c:usersникappdata — ник не нравиться

Нет, проблема не в этом

  • #4

у меня все установилось,
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xed in position 0: invalid continuation byte (sitecust
omize.py, line 7) это единственная ошибка которую я вижу, это скорее всего путь

I had a similar problem with a package with yarl, multidict dependencies. To fix it, I just upgraded my pip:

pip install --upgrade pip
pip install discord

UPDATE JAN 8, 2021: Discord.py v1.6 has been released, changelogs include a bump in the dependencies for building wheels

Old message below

If you want to stay on 3.9:

  • Install Devon’s personal builds of aiohttp, multidict, yarl, and PyNaCl (https://github.com/Rapptz/discord.py/issues/5984#issuecomment-727684359), e.g.:
    py -3.9 -m pip install --upgrade discord.py[voice] --extra-index-url https://gorialis.github.io/pip/
  • Install the Micosoft Visual C++ standalone compilers (https://wiki.python.org/moin/WindowsCompilers) and try to install discord.py in a Native Tools Command Prompt
  • Install from the latest development version of discord.py on the master branch (https://github.com/Rapptz/discord.py#installing), e.g.:
    py -3.9 -m pip install --upgrade "discord.py[voice] @ git+git://github.com/Rapptz/discord.py.git"
  • Install multidict and yarl from precompiled wheels on https://www.lfd.uci.edu/~gohlke/pythonlibs/ (note, PyNaCl for voice support is not supplied there)
  • Install the latest versions of discord.py’s dependencies and install discord.py without dependencies, e.g.:
    py -3.9 -m pip install --upgrade aiohttp pynacl
    py -3.9 -m pip install --upgrade discord.py --no-dependencies
  • Use Python 3.8, for which prebuilt wheels are available for the dependency versions discord.py v1.5.1 uses
  • Wait for discord.py v1.6.0 to be released(RELEASED JAN 8 2021)

Up to date as of January 8, 2021

I also had the exact same issue today, since i downloaded node.js and it updated my python 8 to python 9 and i had to reinstall all of my moduels including dpy.

The solution is to follow what it says

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

https://visualstudio.microsoft.com/visual-cpp-build-tools/

Tags:

Python

Python 3.X

Package

Pip

Discord.Py

Related

Понравилась статья? Поделить с друзьями:
  • Physx error reinstalling the application may fix this problem
  • Pip install conda error
  • Physx error dark sector
  • Pip install catboost error
  • Physical kaslr disabled no suitable memory region как исправить