Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install discord.py #1687

Closed
RexTheCapt opened this issue Oct 24, 2018 · 8 comments
Closed

Can't install discord.py #1687

RexTheCapt opened this issue Oct 24, 2018 · 8 comments

Comments

@RexTheCapt
Copy link

Every single time i try to install discord.py i keep getting the error message

Command ""D:\Program Files (x86)\Python37-32\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\user\AppData\Local\Temp\pip-install-ydtbinw2\PyNaCl\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))"
install --record C:\Users\user\AppData\Local\Temp\pip-record-jlrw0bg6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-ydtbinw2\PyNaCl\

Here is the log https://hastebin.com/tipigopowu.coffeescript

@Phxntxm
Copy link
Contributor

Phxntxm commented Oct 24, 2018

Don't use python3.7, the async branch of the library does not support it....it's recommended to use 3.6.6

@SilicalNZ
Copy link
Contributor

Duplicate of #1249, #1401 and #1648

@Harmon758
Copy link
Contributor

Also duplicate of #1444

@nariman
Copy link

nariman commented Oct 24, 2018

Looks like a compilation error.
You need something (mingw or visual studio's compilators) to build pynacl==1.0.1. Not an easy way.
PyNaCl has wheels for its latest versions, to install it without compilation step.
As a workaround, you can install pynacl (latest version, idk exactly, but it should has a compatibility with 1.0.1), and then discord.py without voice extra.
And, as pointed before, discord.py is not compatible with Python 3.7. Use Python < 3.7 if you'd like so. Or install rewrite branch (from git), without voice extra as well, but you can try with, if 1.2.1 has wheels.
Btw, it's not a duplicate of all that is mentioned before by SilicalNZ. But it would have happened if the installation was successful.

@Harmon758
Copy link
Contributor

Or install rewrite branch (from git), without voice extra as well, but you can try with, if 1.2.1 has wheels.

The rewrite branch now fully supports Python 3.7, including with voice, as PyNaCl 1.2.1 has wheels for Python 3.7 on PyPI.

@RexTheCapt
Copy link
Author

@Phxntxm Thank you for the help. Successful install and my bot runs with no problem.

@progadro
Copy link

can i use python 3.8 here ?

@SebbyLaw
Copy link
Contributor

SebbyLaw commented Oct 20, 2020

@progadro Please don't necrobump old issues. The async branch of discord.py is no longer supported, so this issue is no longer relevant.

For further help specific to using this library, you should join either the official discord.py server or the Discord API server, as the README recommends.

Repository owner locked as resolved and limited conversation to collaborators Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants