3

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?

Joel_1930
  • 33
  • 1
  • 1
  • 6
  • Has the same message when trying to compile PEP 517 under alpine Linux - my issue was that I was missing 'make' - after installing it (with `apk add make`) it allowed me to compile PEP successfully. – kyrisu Jan 28 '21 at 01:24
  • @kyrisu: installing `make` fixed the problem here on a Ubuntu 20.04 LTS AWS EC2 instance, too - you might want to turn your comment into an answer :-) – ssc May 14 '21 at 16:20

4 Answers4

8

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.

AzyCrw4282
  • 7,222
  • 5
  • 19
  • 35
2

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.

Abhishek Patil
  • 1,373
  • 3
  • 30
  • 62
Prabhudsp
  • 31
  • 1
1

Try to install binutils first before installing pynacl on Termux.

pkg install binutils
Javad
  • 2,033
  • 3
  • 13
  • 23
JohanV
  • 31
  • 2
0
[root@username ~]# pip3 install -U discord.py[voice]

above worked for me ^^ on RHEL 8.

cottontail
  • 10,268
  • 18
  • 50
  • 51