Joel_1930
Joel_1930

Reputation: 33

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

I'm using the latest Version of Pycharm:

When I Enter this command:

pip install -U discord.py[voice]

This Error Message shows:

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

What should I do?

Upvotes: 3

Views: 21338

Answers (4)

JohanV
JohanV

Reputation: 31

Try to install binutils first before installing PyNaCl on Termux.

pkg install binutils

Upvotes: 1

Manoranjan Singh
Manoranjan Singh

Reputation: 1

[root@username ~]# pip3 install -U discord.py[voice]

above worked for me ^^ on RHEL 8.

Upvotes: 0

Prabhudsp
Prabhudsp

Reputation: 31

Thanks, @kyrisu, your solution actually worked installing make did the trick for certain cloud packages it throws an error if there is no cmake installed too. Adding the command which I used on my alpine image.

RUN apk add --no-cache make cmake

This adds both make and cmake and post that the dependencies are installed without any issues.

Upvotes: 2

AzyCrw4282
AzyCrw4282

Reputation: 7764

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.

Upvotes: 8

Related Questions