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

error at building wheel for Pyinstaller (PEP 517) #343

Open
parmar652 opened this issue Apr 26, 2020 · 13 comments
Open

error at building wheel for Pyinstaller (PEP 517) #343

parmar652 opened this issue Apr 26, 2020 · 13 comments
Assignees
Labels
bug packaging Issues related to installing or building bottleneck

Comments

@parmar652
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
To assist in reproducing the bug, please include the following:

  1. Command/code being executed
  2. Python version and OS
  3. pip version
  4. Output of pip list or conda list

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@parmar652
Copy link
Author

Failed to build PyInstaller
Error : Could not build wheels for PyInstaller which use PEP 517 and cannot be installed directly

@qwhelan
Copy link
Collaborator

qwhelan commented May 7, 2020

@parmar652 Could you fill out the requested bug details (eg, what OS and python version this is)?

@qwhelan qwhelan added the packaging Issues related to installing or building bottleneck label May 22, 2020
@Passionate-coder997
Copy link

facing same error I'am using python 3.8.5 on windows 7 when I execute the command pip --version or pip list or python -m pip freeze then I'm getting NameError: pip is not defined

@jakeshoemaker
Copy link

jakeshoemaker commented Aug 10, 2020

getting the same error: Building wheel for pyinstaller (PEP 517) ... error

typing: pip install pyinstaller

leads to this --> Building wheel for pyinstaller (PEP 517) ... error
...
Successfully built pefile future
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly

python version: python version: 3.7.8
pip version: pip 20.2.1 from c:\users\jshoemaker\languages\python\lib\site-packages\pip (python 3.7)
OS: windows 10

EDIT ++++++++++++++++++++++++++++++

I think my issue came from PyInstallers release to 4.0.

For me what did the trick was downgrading to python 3.7 (latest version of 3.7)
&
Downgrading to PyInstaller 3.6. Once I did these everything was smooth sailing.

@jakeshoemaker
Copy link

jakeshoemaker commented Aug 10, 2020

facing same error I'am using python 3.8.5 on windows 7 when I execute the command pip --version or pip list or python -m pip freeze then I'm getting NameError: pip is not defined

@Passionate-coder997 you need to add python and pip to path if pip isn't defined

@DeMaximilianster
Copy link

Well I found a solution here.

$ pip install pyinstaller --no-binary :all:

and it did the trick. But does anyone know if this is not safe?

@ibeuler
Copy link

ibeuler commented Nov 19, 2020

...
.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for scikit-image
Failed to build scikit-image
ERROR: Could not build wheels for scikit-image which use PEP 517 and cannot be installed directly

those are the end of the error please I want a real solution to this problem I can't find any solves for this
and I am a new learner if the solution were in steps I will be thrilled.
thank you :)

@iskmac
Copy link

iskmac commented Jan 6, 2021

I got the same error and I had solved this by the following command:
easy_install pyinstaller

@rzimmerdev
Copy link

If using Windows OS, verify under Start > Settings > Update & Security > Windows Security > Virus & threat protection > Protection History if Windows is identifying the file for installing PyInstaller with Pip as potential malware and thus blocking it. Worked for me.

@gregsteruk100
Copy link

getting the same error: Building wheel for pyinstaller (PEP 517) ... error

typing: pip install pyinstaller

leads to this --> Building wheel for pyinstaller (PEP 517) ... error
...
Successfully built pefile future
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly

python version: python version: 3.7.8
pip version: pip 20.2.1 from c:\users\jshoemaker\languages\python\lib\site-packages\pip (python 3.7)
OS: windows 10

EDIT ++++++++++++++++++++++++++++++

I think my issue came from PyInstallers release to 4.0.

For me what did the trick was downgrading to python 3.7 (latest version of 3.7)
&
Downgrading to PyInstaller 3.6. Once I did these everything was smooth sailing.

Thanks, worked for me too.

@Mazda88321
Copy link

I had the same problem and I change my python to 3.8 version and then I installed C++ "vs_buildtools__2044913657.1613396723"
and the problem solved.

@erdoukki
Copy link

same issue on OpenWrt 21.02-RC3 :

# python3 --version
Python 3.9.6

Well I found a solution here.

$ pip install pyinstaller --no-binary :all:

and it did the trick. But does anyone know if this is not safe?

# pip install pyinstaller --no-binary :all:

still gave errors :

root@ultra:~# pip install pyinstaller --no-binary :all:
Looking in indexes: https://pypi.org/simple, https://packagecloud.io/crowdsec/crowdsec/pypi/simple
Collecting pyinstaller
  Using cached pyinstaller-4.4.tar.gz (3.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pyinstaller-hooks-contrib>=2020.6
  Downloading pyinstaller-hooks-contrib-2021.2.tar.gz (62 kB)
     |████████████████████████████████| 62 kB 311 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting altgraph
  Downloading altgraph-0.17.tar.gz (534 kB)
     |████████████████████████████████| 534 kB 789 kB/s 
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (from pyinstaller) (57.1.0)
Skipping wheel build for altgraph, due to binaries being disabled for it.
Building wheels for collected packages: pyinstaller, pyinstaller-hooks-contrib
  Building wheel for pyinstaller (PEP 517) ... error
  ERROR: Failed building wheel for pyinstaller
  Building wheel for pyinstaller-hooks-contrib (PEP 517) ... done
  Created wheel for pyinstaller-hooks-contrib: filename=pyinstaller_hooks_contrib-2021.2-py2.py3-none-any.whl size=190165 sha256=44cff0bd7694bfbc470e43aa70a6995d3093f73ca7e2ef41237bb86c8597039f
  Stored in directory: /tmp/.cache/wheels/a5/5e/70/25830079599392ba90be65d75ca952f26f2814f321c9a78464
Successfully built pyinstaller-hooks-contrib
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly

@Jakkwj
Copy link

Jakkwj commented Jan 24, 2023

I found a solution here.

$ pip install --upgrade pip setuptools wheel

After upgrade and then pip install pyinstaller, everything ok~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug packaging Issues related to installing or building bottleneck
Projects
None yet
Development

No branches or pull requests