I've been wanting to make a bot for discord using discord.py, yet whenever I install the package, it spits out an error like this
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\yarl
copying yarl\_quoting.py -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_py.py -> build\lib.win-amd64-3.9\yarl
copying yarl\_url.py -> build\lib.win-amd64-3.9\yarl
copying yarl\__init__.py -> build\lib.win-amd64-3.9\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.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-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.c -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.pyi -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.pyx -> build\lib.win-amd64-3.9\yarl
copying yarl\py.typed -> build\lib.win-amd64-3.9\yarl
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-build-tools/
----------------------------------------
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
I have tried to install the wheel using pip and tried installing the Microsoft C++ Build Tools at the bottom of the error message, but it still hasn't worked. Any help would be appreciated.
using python 3.8.6 instead of 3.9 worked for me!
Related
I am trying to make a discord bot with nextcord, but when I try to install it using command prompt, it gives me this error:
× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
C:\Users\klama\AppData\Local\Temp\pip-build-env-pknvci1v\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_url.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\__init__.py -> build\lib.win-amd64-cpython-311\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.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'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-311\yarl
copying yarl\py.typed -> build\lib.win-amd64-cpython-311\yarl
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-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build frozenlist multidict yarl
ERROR: Could not build wheels for frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
I've tried updating my pip, but it says "Requirement already satisfied". I've been looking for about 2 hours an a half and still can't find it.
Just instal python 3.10. I tried instal Microsoft Visual C++ 14.0... did not work out
The error message you posted says it all: you need Microsoft Visual C++ 14.0 or greater.
For those of you here because you got this error after updating your Python Docker image to Python 3.11, it may be because gcc and other C++ libraries aren't included in the image anymore. For example, this can be fixed in 3.11.0-slim-buster by adding the following line to your Dockerfile
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
rm -rf /var/lib/apt/lists/*
How do I install aiogram on raspberry pi with python version 3.11 (python pre-assembled and installed)?
On the standard version 3.7.3 everything is error-free.
When trying to set airogram
python3 --version
Python 3.11.0a6+
pip --version
pip 22.0.4 from /home/pi/.local/lib/python3.11/site-packages/pip (python 3.11)
The platform is raspberry pi
pi#raspberrypi:~/Desktop/network_folder/bot_2021_2semestr $ pip3.11 install aiog ram
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting aiogram
Using cached https://www.piwheels.org/simple/aiogram/aiogram-2.19-py3-none-any .whl (187 kB)
Collecting aiohttp<3.9.0,>=3.8.0
Using cached aiohttp-3.8.1.tar.gz (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting Babel<2.10.0,>=2.9.1
Using cached https://www.piwheels.org/simple/babel/Babel-2.9.1-py2.py3-none-an y.whl (8.8 MB)
Collecting certifi>=2021.10.8
Using cached https://www.piwheels.org/simple/certifi/certifi-2021.10.8-py2.py3 -none-any.whl (151 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp311-cp311-linux_armv7l.whl
Collecting charset-normalizer<3.0,>=2.0
Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normal izer-2.0.12-py3-none-any.whl (44 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2 -py3-none-any.whl (5.8 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.0.tar.gz (65 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting aiosignal>=1.1.2
Using cached https://www.piwheels.org/simple/aiosignal/aiosignal-1.2.0-py3-non e-any.whl (8.2 kB)
Collecting attrs>=17.3.0
Using cached https://www.piwheels.org/simple/attrs/attrs-21.4.0-py2.py3-none-a ny.whl (60 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.7.2.tar.gz (168 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pytz>=2015.7
Using cached https://www.piwheels.org/simple/pytz/pytz-2021.3-py3-none-any.whl (511 kB)
Collecting idna>=2.0
Using cached https://www.piwheels.org/simple/idna/idna-3.3-py3-none-any.whl (6 4 kB)
Building wheels for collected packages: aiohttp, frozenlist, yarl
Building wheel for aiohttp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for aiohttp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [107 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.11
creating build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/typedefs.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_server.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/helpers.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_exceptions.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/locks.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/log.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/client_exceptions.py -> build/lib.linux-armv7l-3.11/aiohtt p
copying aiohttp/web_runner.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/tcp_helpers.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/worker.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_routedef.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/client_ws.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/http_websocket.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_fileresponse.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/multipart.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/formdata.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/http_writer.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/http_exceptions.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/resolver.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/client_reqrep.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/payload_streamer.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_protocol.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_middlewares.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_request.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_log.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_ws.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/http_parser.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_app.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/connector.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/payload.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_response.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/client.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/http.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/tracing.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/base_protocol.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/web_urldispatcher.py -> build/lib.linux-armv7l-3.11/aiohtt p
copying aiohttp/client_proto.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/hdrs.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/__init__.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/streams.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/test_utils.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/cookiejar.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/pytest_plugin.py -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/abc.py -> build/lib.linux-armv7l-3.11/aiohttp
running egg_info
writing aiohttp.egg-info/PKG-INFO
writing dependency_links to aiohttp.egg-info/dependency_links.txt
writing requirements to aiohttp.egg-info/requires.txt
writing top-level names to aiohttp.egg-info/top_level.txt
reading manifest file '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 d istribution
warning: no previously-included files matching '*.pyd' found anywhere in d istribution
warning: no previously-included files matching '*.so' found anywhere in di stribution
warning: no previously-included files matching '*.lib' found anywhere in d istribution
warning: no previously-included files matching '*.dll' found anywhere in d istribution
warning: no previously-included files matching '*.a' found anywhere in dis tribution
warning: no previously-included files matching '*.obj' found anywhere in d istribution
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 'aiohttp.egg-info/SOURCES.txt'
copying aiohttp/_cparser.pxd -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_find_header.c -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_find_header.h -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_find_header.pxd -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_headers.pxi -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_helpers.c -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_helpers.pyi -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_helpers.pyx -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_http_parser.c -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_http_parser.pyx -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_http_writer.c -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_http_writer.pyx -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_websocket.c -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/_websocket.pyx -> build/lib.linux-armv7l-3.11/aiohttp
copying aiohttp/py.typed -> build/lib.linux-armv7l-3.11/aiohttp
creating build/lib.linux-armv7l-3.11/aiohttp/.hash
copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.linux-armv7l-3.11/aio http/.hash
copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.linux-armv7l-3.11 /aiohttp/.hash
copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.linux-armv7l-3.11/aio http/.hash
copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.linux-armv7l-3.11/aio http/.hash
copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.linux-armv7l-3.11 /aiohttp/.hash
copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.linux-armv7l-3.11 /aiohttp/.hash
copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.linux-armv7l-3.11/a iohttp/.hash
copying aiohttp/.hash/hdrs.py.hash -> build/lib.linux-armv7l-3.11/aiohttp/ .hash
running build_ext
building 'aiohttp._websocket' extension
creating build/temp.linux-armv7l-3.11
creating build/temp.linux-armv7l-3.11/aiohttp
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi /.local/include/python3.11 -c aiohttp/_websocket.c -o build/temp.linux-armv7l-3. 11/aiohttp/_websocket.o
aiohttp/_websocket.c:198:12: fatal error: longintrepr.h: Немає такого файл а або каталогу
#include "longintrepr.h"
^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip.
ERROR: Failed building wheel for aiohttp
Building wheel for frozenlist (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for frozenlist (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.11
creating build/lib.linux-armv7l-3.11/frozenlist
copying frozenlist/__init__.py -> build/lib.linux-armv7l-3.11/frozenlist
running egg_info
writing frozenlist.egg-info/PKG-INFO
writing dependency_links to frozenlist.egg-info/dependency_links.txt
writing top-level names to frozenlist.egg-info/top_level.txt
reading manifest file 'frozenlist.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in d istribution
warning: no previously-included files matching '*.pyd' found anywhere in d istribution
warning: no previously-included files matching '*.so' found anywhere in di stribution
warning: no previously-included files matching '*.lib' found anywhere in d istribution
warning: no previously-included files matching '*.dll' found anywhere in d istribution
warning: no previously-included files matching '*.a' found anywhere in dis tribution
warning: no previously-included files matching '*.obj' found anywhere in d istribution
warning: no previously-included files found matching 'frozenlist/*.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
writing manifest file 'frozenlist.egg-info/SOURCES.txt'
copying frozenlist/__init__.pyi -> build/lib.linux-armv7l-3.11/frozenlist
copying frozenlist/_frozenlist.pyx -> build/lib.linux-armv7l-3.11/frozenli st
copying frozenlist/py.typed -> build/lib.linux-armv7l-3.11/frozenlist
running build_ext
building 'frozenlist._frozenlist' extension
creating build/temp.linux-armv7l-3.11
creating build/temp.linux-armv7l-3.11/frozenlist
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi /.local/include/python3.11 -c frozenlist/_frozenlist.c -o build/temp.linux-armv7 l-3.11/frozenlist/_frozenlist.o
frozenlist/_frozenlist.c: In function ‘__Pyx_AddTraceback’:
frozenlist/_frozenlist.c:432:62: error: dereferencing pointer to incomplet e type ‘PyFrameObject’ {aka ‘struct _frame’}
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
^~
frozenlist/_frozenlist.c:7127:5: note: in expansion of macro ‘__Pyx_PyFram e_SetLineNumber’
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip.
ERROR: Failed building wheel for frozenlist
Building wheel for yarl (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.11
creating build/lib.linux-armv7l-3.11/yarl
copying yarl/_url.py -> build/lib.linux-armv7l-3.11/yarl
copying yarl/_quoting.py -> build/lib.linux-armv7l-3.11/yarl
copying yarl/_quoting_py.py -> build/lib.linux-armv7l-3.11/yarl
copying yarl/__init__.py -> build/lib.linux-armv7l-3.11/yarl
running egg_info
writing yarl.egg-info/PKG-INFO
writing dependency_links to yarl.egg-info/dependency_links.txt
writing requirements to yarl.egg-info/requires.txt
writing top-level names to yarl.egg-info/top_level.txt
reading manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in d istribution
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'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info/SOURCES.txt'
copying yarl/__init__.pyi -> build/lib.linux-armv7l-3.11/yarl
copying yarl/_quoting_c.c -> build/lib.linux-armv7l-3.11/yarl
copying yarl/_quoting_c.pyi -> build/lib.linux-armv7l-3.11/yarl
copying yarl/_quoting_c.pyx -> build/lib.linux-armv7l-3.11/yarl
copying yarl/py.typed -> build/lib.linux-armv7l-3.11/yarl
running build_ext
building 'yarl._quoting_c' extension
creating build/temp.linux-armv7l-3.11
creating build/temp.linux-armv7l-3.11/yarl
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi /.local/include/python3.11 -c yarl/_quoting_c.c -o build/temp.linux-armv7l-3.11/ yarl/_quoting_c.o
yarl/_quoting_c.c:198:12: fatal error: longintrepr.h: Немає такого файла а бо каталогу
#include "longintrepr.h"
^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem wit h pip.
ERROR: Failed building wheel for yarl
Failed to build aiohttp frozenlist yarl
ERROR: Could not build wheels for aiohttp, frozenlist, yarl, which is required to install pyproject.toml-based projects
I have had a problem with this all ready. I have tried many solutions however they haven't been able to do much. The first time round it said it needed to have c++ 14 or later so I downloaded that and now I have this message. I'm not sure as why is says that it failed to exit the code. If anyone can help it would be appreciated.
Thanks.
C:\Users\Scott>pip install discord
Collecting discord
Using cached discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.0.1
Using cached discord.py-1.5.1-py3-none-any.whl (701 kB)
Processing
c:\users\scott\appdata\local\pip\cache\wheels\b6\9c\bd\6b99bc6ec9dab11f3756d31fb8506d3ecf07aea58b6201f539
\aiohttp-3.6.3-py3-none-any.whl
Requirement already satisfied: chardet<4.0,>=2.0 in
c:\users\scott\appdata\local\programs\python\python39\lib\site-packages (from aiohttp<3.7.0,>=3.6.0-
>discord.py>=1.0.1->discord) (3.0.4)
Collecting async-timeout<4.0,>=3.0
Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Requirement already satisfied: attrs>=17.3.0 in
c:\users\scott\appdata\local\programs\python\python39\lib\site-packages (from aiohttp<3.7.0,>=3.6.0-
>discord.py>=1.0.1->discord) (20.3.0)
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
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:\users\scott\appdata\local\programs\python\python39\lib\site-packages (from yarl<1.6.0,>=1.0-
>aiohttp<3.7.0,>=3.6.0->discord.py>=1.0.1->discord) (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:\users\scott\appdata\local\programs\python\python39\python.exe'
'c:\users\scott\appdata\local\programs\python\python39\lib\site-
packages\pip\_vendor\pep517\_in_process.py' build_wheel
'C:\Users\Scott\AppData\Local\Temp\tmpie_k6tbo'
cwd: C:\Users\Scott\AppData\Local\Temp\pip-install-miy3epan\multidict
Complete output (46 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\multidict
copying multidict\_abc.py -> build\lib.win-amd64-3.9\multidict
copying multidict\_compat.py -> build\lib.win-amd64-3.9\multidict
copying multidict\_multidict_base.py -> build\lib.win-amd64-3.9\multidict
copying multidict\_multidict_py.py -> build\lib.win-amd64-3.9\multidict
copying multidict\__init__.py -> build\lib.win-amd64-3.9\multidict
running egg_info
writing multidict.egg-info\PKG-INFO
writing dependency_links to multidict.egg-info\dependency_links.txt
writing top-level names to multidict.egg-info\top_level.txt
reading manifest file 'multidict.egg-info\SOURCES.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-info\SOURCES.txt'
copying multidict\__init__.pyi -> build\lib.win-amd64-3.9\multidict
copying multidict\_multidict.c -> build\lib.win-amd64-3.9\multidict
copying multidict\py.typed -> build\lib.win-amd64-3.9\multidict
creating build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\defs.h -> build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\dict.h -> build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\istr.h -> build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\iter.h -> build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\pair_list.h -> build\lib.win-amd64-3.9\multidict\_multilib
copying multidict\_multilib\views.h -> build\lib.win-amd64-3.9\multidict\_multilib
running build_ext
building 'multidict._multidict' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\multidict
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL
/DNDEBUG /MD -Ic:\users\scott\appdata\local\programs\python\python39\include -
Ic:\users\scott\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft
Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /Tcmultidict/_multidict.c
/Fobuild\temp.win-amd64-3.9\Release\multidict/_multidict.obj -O2
_ multidict.c
c:\users\scott\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083:
Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit
code 2
----------------------------------------
ERROR: Failed building wheel for multidict
Building wheel for yarl (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\scott\appdata\local\programs\python\python39\python.exe'
'c:\users\scott\appdata\local\programs\python\python39\lib\site-
packages\pip\_vendor\pep517\_in_process.py' build_wheel
'C:\Users\Scott\AppData\Local\Temp\tmplcm8zc1m'
cwd: C:\Users\Scott\AppData\Local\Temp\pip-install-miy3epan\yarl
Complete output (41 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\yarl
copying yarl\_quoting.py -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_py.py -> build\lib.win-amd64-3.9\yarl
copying yarl\_url.py -> build\lib.win-amd64-3.9\yarl
copying yarl\__init__.py -> build\lib.win-amd64-3.9\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.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-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.c -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.pyi -> build\lib.win-amd64-3.9\yarl
copying yarl\_quoting_c.pyx -> build\lib.win-amd64-3.9\yarl
copying yarl\py.typed -> build\lib.win-amd64-3.9\yarl
running build_ext
building 'yarl._quoting_c' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\yarl
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL
/DNDEBUG /MD -Ic:\users\scott\appdata\local\programs\python\python39\include -
Ic:\users\scott\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft
Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /Tcyarl/_quoting_c.c
/Fobuild\temp.win-amd64-3.9\Release\yarl/_quoting_c.obj
_quoting_c.c
c:\users\scott\appdata\local\programs\python\python39\include\pyconfig.h(59): fatal error C1083:
Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit
code 2
----------------------------------------
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
i tried to install discord.py but something went wrong, i don't know why, ,can someone help me?
i have execute this command:
pip install discord
right now i'm using python 3.9.0, maybe i should be using version 3.5.3?
MY TERMINAL:
PS C:\Users\badreddinelaghlid\Desktop\codaggio con python> pip install discord
Collecting discord
Downloading discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.0.1
Downloading discord.py-1.5.1-py3-none-any.whl (701 kB)
|████████████████████████████████| 701 kB 1.3 MB/s
Collecting aiohttp<3.7.0,>=3.6.0
Downloading aiohttp-3.6.3.tar.gz (1.1 MB)
|████████████████████████████████| 1.1 MB 726 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting yarl<1.6.0,>=1.0
Downloading yarl-1.5.1.tar.gz (173 kB)
|████████████████████████████████| 173 kB 1.6 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting chardet<4.0,>=2.0
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 2.2 MB/s
Collecting attrs>=17.3.0
Downloading attrs-20.2.0-py2.py3-none-any.whl (48 kB)
|████████████████████████████████| 48 kB 2.2 MB/s
Collecting async-timeout<4.0,>=3.0
Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting multidict<5.0,>=4.5
Downloading multidict-4.7.6.tar.gz (50 kB)
|████████████████████████████████| 50 kB 3.1 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting idna>=2.0
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 1.7 MB/s
Building wheels for collected packages: aiohttp, yarl, multidict
Building wheel for aiohttp (PEP 517) ... done
Created wheel for aiohttp: filename=aiohttp-3.6.3-py3-none-any.whl size=440479 sha256=515efabf51ce43d3d161e6a2829a8b366438049af887a441fc5aee702f0830f0
Stored in directory: c:\users\badreddinelaghlid\appdata\local\pip\cache\wheels\b6\9c\bd\6b99bc6ec9dab11f3756d31fb8506d3ecf07aea58b6201f539
Building wheel for yarl (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\python.exe' 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\BADRED~1\AppData\Local\Temp\tmpz_p_dipv'
cwd: C:\Users\badreddinelaghlid\AppData\Local\Temp\pip-install-ty37tuq6\yarl
Complete output (35 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\yarl
copying yarl\_quoting.py -> build\lib.win32-3.9\yarl
copying yarl\_quoting_py.py -> build\lib.win32-3.9\yarl
copying yarl\_url.py -> build\lib.win32-3.9\yarl
copying yarl\__init__.py -> build\lib.win32-3.9\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.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-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.c -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.pyi -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.pyx -> build\lib.win32-3.9\yarl
copying yarl\py.typed -> build\lib.win32-3.9\yarl
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-build-tools/
----------------------------------------
ERROR: Failed building wheel for yarl
Building wheel for multidict (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\python.exe' 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\BADRED~1\AppData\Local\Temp\tmpitmt1bzr'
cwd: C:\Users\badreddinelaghlid\AppData\Local\Temp\pip-install-ty37tuq6\multidict
Complete output (40 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\multidict
copying multidict\_abc.py -> build\lib.win32-3.9\multidict
copying multidict\_compat.py -> build\lib.win32-3.9\multidict
copying multidict\_multidict_base.py -> build\lib.win32-3.9\multidict
copying multidict\_multidict_py.py -> build\lib.win32-3.9\multidict
copying multidict\__init__.py -> build\lib.win32-3.9\multidict
running egg_info
writing multidict.egg-info\PKG-INFO
writing dependency_links to multidict.egg-info\dependency_links.txt
writing top-level names to multidict.egg-info\top_level.txt
reading manifest file 'multidict.egg-info\SOURCES.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-info\SOURCES.txt'
copying multidict\__init__.pyi -> build\lib.win32-3.9\multidict
copying multidict\_multidict.c -> build\lib.win32-3.9\multidict
copying multidict\py.typed -> build\lib.win32-3.9\multidict
creating build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\defs.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\dict.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\istr.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\iter.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\pair_list.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\views.h -> build\lib.win32-3.9\multidict\_multilib
running build_ext
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/
----------------------------------------
ERROR: Failed building wheel for multidict
Successfully built aiohttp
Failed to build yarl multidict
ERROR: Could not build wheels for yarl, multidict which use PEP 517 and cannot be installed directly
I haven't been coding in a long time so.. I may have forgotten something..
thanks for attention.
There's the problem: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/. U need to download it.
There are some issues with discord.pyand python3.9 on Windows, see:
https://github.com/Rapptz/discord.py/issues/5984
I would recommend you to use python<=3.8 as 3.9.0 is too new.
I'm trying to install from source psutil 2.1.0 for Python 3.4. My OS is Windows 7 x64. I receive the error:
c:\Python34\psutil-2.1.0>python setup.py install --verbose
running install
running bdist_egg
running egg_info
writing top-level names to psutil.egg-info\top_level.txt
writing psutil.egg-info\PKG-INFO
writing dependency_links to psutil.egg-info\dependency_links.txt
reading manifest file 'psutil.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docs
build'
writing manifest file 'psutil.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\psutil
copying psutil\_common.py -> build\lib.win32-3.4\psutil
copying psutil\_compat.py -> build\lib.win32-3.4\psutil
copying psutil\_psbsd.py -> build\lib.win32-3.4\psutil
copying psutil\_pslinux.py -> build\lib.win32-3.4\psutil
copying psutil\_psosx.py -> build\lib.win32-3.4\psutil
copying psutil\_psposix.py -> build\lib.win32-3.4\psutil
copying psutil\_pssunos.py -> build\lib.win32-3.4\psutil
copying psutil\_pswindows.py -> build\lib.win32-3.4\psutil
copying psutil\__init__.py -> build\lib.win32-3.4\psutil
running build_ext
building '_psutil_windows' extension
error: Unable to find vcvarsall.bat
Can you help me please? Thanks in advance
vcvarsall.bat looks like a dependency for Microsoft Visual Studio.
See: Python issue:Unable to find vcvarsall.bat
You could try to install it manually. Get the amd64 py3.4 build from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#psutil
And install it. If that fails as well, use 7-Zip to open the .exe and unpack the contained folder to your site-packages.
try my experience. I hope it will be helpful
I have Ptython 3.4 installed. I was trying to install 'paramiko' modul and I've recieved an error message (vcvarsall.bat)
So after that I did folowing:
1. install MinGW (refer to page- http://docs.cython.org/src/tutorial/appendix.html)
2. install pycrypto2.6.1 (I've found it here - https://github.com/axper/python3-pycrypto-windows-installer) for others python version please refer this page -- www.voidspace.org.uk/python/modules.shtml#pycrypto
3. check