ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly

Joel_1930 picture Joel_1930 · Nov 29, 2020 · Viewed 12.7k times · Source

Im using the latest Version of Pycharm:

When i Enter this command: pip install -U discord.py[voice]

This Error Message will come: ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly

What should i do?

Answer

AzyCrw4282 picture AzyCrw4282 · Nov 29, 2020

PEP 517 was known to have some problems with virtualenvs so that could be a likely cause.

Try to perform these commands and see if that works

pip install --upgrade pip
pip install --no-use-pep517 discord.py[voice]

If not try to downgrade your pip version

pip install pip==18.1

and then try the package install command again.