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: Command errored out with exit status 1 #8618

Closed
recepbalibey opened this issue Jul 23, 2020 · 29 comments
Closed

ERROR: Command errored out with exit status 1 #8618

recepbalibey opened this issue Jul 23, 2020 · 29 comments
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@recepbalibey
Copy link

recepbalibey commented Jul 23, 2020

  • Windows 10.
  • pip 20.1.1
  • Python 3.8.2

Hello. I have been trying to install some packages like pyautogui, pyinstaller, pygame but I have the same error. I have uploaded many packages before and now I couldn't find the solution. Could you please help me figure out ?
pip install pyautogui

ERROR: Command errored out with exit status 1:
   command: 'c:\python\python.exe' 'c:\python\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Recep\AppData\Local\Temp\pip-build-env-l5ikgkv0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
       cwd: None
 Complete output (44 lines):
  Traceback (most recent call last):
    File "c:\python\lib\runpy.py", line 193, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "c:\python\lib\runpy.py", line 86, in _run_code
      exec(code, run_globals)
    File "c:\python\lib\site-packages\pip\__main__.py", line 26, in <module>
      sys.exit(_main())
    File "c:\python\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
      command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
    File "c:\python\lib\site-packages\pip\_internal\commands\__init__.py", line 104, in create_command
      module = importlib.import_module(module_path)
    File "c:\python\lib\importlib\__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
    File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 783, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "c:\python\lib\site-packages\pip\_internal\commands\install.py", line 24, in <module>
      from pip._internal.cli.req_command import RequirementCommand, with_cleanup
    File "c:\python\lib\site-packages\pip\_internal\cli\req_command.py", line 16, in <module>
      from pip._internal.index.package_finder import PackageFinder
    File "c:\python\lib\site-packages\pip\_internal\index\package_finder.py", line 21, in <module>
      from pip._internal.index.collector import parse_links
    File "c:\python\lib\site-packages\pip\_internal\index\collector.py", line 14, in <module>
      from pip._vendor import html5lib, requests
    File "c:\python\lib\site-packages\pip\_vendor\requests\__init__.py", line 114, in <module>
      from . import utils
    File "c:\python\lib\site-packages\pip\_vendor\requests\utils.py", line 25, in <module>
      from . import certs
    File "c:\python\lib\site-packages\pip\_vendor\requests\certs.py", line 15, in <module>
      from pip._vendor.certifi import where
    File "c:\python\lib\site-packages\pip\_vendor\certifi\__init__.py", line 1, in <module>
      from .core import contents, where
    File "c:\python\lib\site-packages\pip\_vendor\certifi\core.py", line 12, in <module>
      from importlib.resources import read_text
    File "c:\python\lib\importlib\resources.py", line 11, in <module>
      from typing import Iterable, Iterator, Optional, Set, Union   # noqa: F401
    File "c:\python\lib\site-packages\typing.py", line 1359, in <module>
      class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
    File "c:\python\lib\site-packages\typing.py", line 1007, in __new__
      self._abc_registry = extra._abc_registry
  AttributeError: type object 'Callable' has no attribute '_abc_registry'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python\python.exe' 'c:\python\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Recep\AppData\Local\Temp\pip-build-env-l5ikgkv0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Jul 23, 2020
@McSinyx
Copy link
Contributor

McSinyx commented Jul 24, 2020

Hi, this seems to be duplicate of GH-8272.

@uranusjr uranusjr added the resolution: duplicate Duplicate of an existing issue/PR label Jul 24, 2020
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Jul 24, 2020
@piyush-creator
Copy link

Is there any solution. I am having the same problem in mac

@sneidc
Copy link

sneidc commented Oct 18, 2020

I had the same problem with installing Pygame on Windows with Python 3.9.
The solution was to install an older version of python (with an older version of pip), where I know it would work.

py -3.8 -m pip install pygame

With py -3.8 you choose the version you want to use.

@ryilkici
Copy link

I had same problem when installing scikit-learn on PyCharm (2020.2.3) virtualenv with Python 3.9. I think v3.9 has some package installing problems. I solved this problem with removing v3.9 and installing v3.8.6.

@SUPERustam
Copy link

I had same problem with installing matplotlib😶(windows 10, python 3.9.0)

@SrBaddour
Copy link

I had same problem with installing matplotlib😶(windows 10, python 3.9.0)

For this try pip install -U setuptools pip install -U wheel, works for me. but know i have the same problem whit Sklearn. jajaj

@tristran2k1
Copy link

I had same problem with installing matplotlib😶(windows 10, python 3.9.0)
How can you solve it? I have same your problem :(

@suku-py23
Copy link

Same problem man, what do I do? Do I install an older version of Python instead of the current 3.9 version? If so, are we sure that it's gonna work, and it'll not affect mysql database connections right?

@SrBaddour
Copy link

SrBaddour commented Nov 13, 2020 via email

@suku-py23
Copy link

I already solvet, let me search the solution again, I remember it was an issue whit the wheels tools El vie., 13 nov. 2020 14:50, Sukanyaaaaa notifications@github.com escribió:

Same problem man, what do I do? Do I install an older version of Python instead of the current 3.9 version? If so, are we sure that it's gonna work, and it'll not affect mysql database connections right? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#8618 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMZYPM72SPPHEM4QPVOXCYTSPVWXZANCNFSM4PGBPG6Q .

Did you find it? If so, pls do lemme know soon!

@shahbazakon
Copy link

Command errored out with exit status 1:
I'm facing this type of problem in installing "sklearn" in python 3.9v.
Does anyone has a solution????

@pfmoore
Copy link
Member

pfmoore commented Nov 16, 2020

If the project doesn't (yet) distribute binaries, and you can't build from source yourself, then you'll need to either wait for the project to get round to adding Python 3.9 binaries, or go back to Python 3.8 until the projects you rely on have updated.

@medani123
Copy link

Try this:

Rollback pip to an older version:
python -m pip install pip==18.1

Install desired module:
pip install pyautogui

Update pip:
python -m pip install --upgrade pip

@softwareenginear
Copy link

softwareenginear commented Nov 26, 2020

pip3 install --upgrade setuptools
pip3 install --upgrade pip

@DarshanShelat
Copy link

I had the same issue while installing biopython with py 3.9.1 and latest pip 20.2.3, installed py 3.8.7,everthing is running A ok now

@sugampath
Copy link

ERROR: Command errored out with exit status 1: 'c:\users\prakash\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\prakash\AppData\Local\Temp\pip-install-74mk3fxt\twisted_94e4bf42af5a43469b394965a3fdddd4\setup.py'"'"'; file='"'"'C:\Users\prakash\AppData\Local\Temp\pip-install-74mk3fxt\twisted_94e4bf42af5a43469b394965a3fdddd4\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\prakash\AppData\Local\Temp\pip-record-_hpx2xit\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\prakash\appdata\local\programs\python\python39\Include\Twisted' Check the logs for full command output. How to solve this ???

@oluemm
Copy link

oluemm commented Feb 9, 2021

pip install geopandas

ERROR: Command errored out with exit status 1:
command: 'C:\Users\efaso\anaconda3\envs\Emiwest007\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9\setup.py'"'"'; file='"'"'C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\efaso\AppData\Local\Temp\pip-pip-egg-info-44d7sevx'
cwd: C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@mulinShi
Copy link

mulinShi commented Mar 9, 2021

pip install geopandas

ERROR: Command errored out with exit status 1:
command: 'C:\Users\efaso\anaconda3\envs\Emiwest007\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9\setup.py'"'"'; file='"'"'C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\efaso\AppData\Local\Temp\pip-pip-egg-info-44d7sevx'
cwd: C:\Users\efaso\AppData\Local\Temp\pip-install-pxfs0zcu\fiona_fac8a86d26174f6e924bd60e763dd9d9
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I faced the same issue. I fixed it by install a older version of python (such as 3.7.0)

@ichiragkumar
Copy link

i had same problem while using
pip install jsonlib

@kalsoom004
Copy link

Trying to install " sudo pip install git+https://www.github.com/keras-team/keras-contrib.git" on python version 3.8.5

it works for google colab but for the system it return the error:

" ERROR: Command errored out with exit status 1: git clone -q https://www.github.com/keras-team/keras-contrib.git /private/var/folders/ph/9nhz32091gx61hp41z_51y440000gn/T/pip-req-build-hai1na5_ Check the logs for full command output."

@MarcoGiuliani89
Copy link

Same problem for me while installing cffi
Both on Windows and Ubuntu

@Mehwish93
Copy link

Mehwish93 commented May 31, 2021

Same issue while installing robotframework-excellibrary
Python 3.7.7
Window 10
pip 20.0.2

@Hanma-99
Copy link

Hanma-99 commented Jun 3, 2021

I had same problem when installing scikit-learn on PyCharm (2020.2.3) virtualenv with Python 3.9. I think v3.9 has some package installing problems. I solved this problem with removing v3.9 and installing v3.8.6.

I did what you said, but I keep getting the same error, I tried it in 2 different versions, but it didn't work, do you have any advice?

@ryilkici
Copy link

ryilkici commented Jun 3, 2021

I had same problem when installing scikit-learn on PyCharm (2020.2.3) virtualenv with Python 3.9. I think v3.9 has some package installing problems. I solved this problem with removing v3.9 and installing v3.8.6.

I did what you said, but I keep getting the same error, I tried it in 2 different versions, but it didn't work, do you have any advice?

Did you use this command:

pip install --pre -U scikit-learn

@svadukia
Copy link

svadukia commented Jul 9, 2021

i had same problem while using
pip install jsonlib

Hey have you found solution ?? I am having same error while installing jsonlib

@karangoraniya
Copy link

I had the same problem with
pip install web3

ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Karan Luke\AppData\Local\Temp\pip-install-j4x3wsl1\cytoolz_34b18322c1c14506b2d054cb87909d16\setup.py'"'"'; file='"'"'C:\Users\Karan Luke\AppData\Local\Temp\pip-install-j4x3wsl1\cytoolz_34b18322c1c14506b2d054cb87909d16\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Karan Luke\AppData\Local\Temp\pip-record-61l4rvt3\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Karan Luke\AppData\Roaming\Python\Python39\Include\cytoolz'
cwd: C:\Users\Karan Luke\AppData\Local\Temp\pip-install-j4x3wsl1\cytoolz_34b18322c1c14506b2d054cb87909d16
Complete output (54 lines):
[1/5] Cythonizing cytoolz/utils.pyx
[2/5] Cythonizing cytoolz/dicttoolz.pyx
[3/5] Cythonizing cytoolz/functoolz.pyx
[4/5] Cythonizing cytoolz/itertoolz.pyx
[5/5] Cythonizing cytoolz/recipes.pyx
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cytoolz
copying cytoolz\compatibility.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils_test.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz_signatures.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz_version.py -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz_init_.py -> build\lib.win-amd64-3.9\cytoolz
creating build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried\operator.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\curried_init_.py -> build\lib.win-amd64-3.9\cytoolz\curried
copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\functoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\recipes.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils.pyx -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\cpython.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\functoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\recipes.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz\utils.pxd -> build\lib.win-amd64-3.9\cytoolz
copying cytoolz_init_.pxd -> build\lib.win-amd64-3.9\cytoolz
creating build\lib.win-amd64-3.9\cytoolz\tests

@Haideerr
Copy link

I am having this error during installing dlib and face-recognition. (cmake is done)

Collecting dlib==19.18.0
Using cached dlib-19.18.0.tar.gz (3.1 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py): started
Building wheel for dlib (setup.py): finished with status 'error'
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'

ERROR: Command errored out with exit status 1:
command: 'C:\Users\Haider\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"'; file='"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Haider\AppData\Local\Temp\pip-wheel-usp4krfi'
cwd: C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9
Complete output (55 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Traceback (most recent call last):
File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 223, in
setup(
File "C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(attrs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 122, in get_cmake_version
raise RuntimeError("\n
*****************************************************************\n" +
RuntimeError:


CMake must be installed to build the following extensions: dlib



ERROR: Failed building wheel for dlib
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Haider\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"'; file='"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Haider\AppData\Local\Temp\pip-record-lyp_jhye\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\dlib'
cwd: C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9
Complete output (57 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Traceback (most recent call last):
  File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 120, in get_cmake_version
    out = subprocess.check_output(['cmake', '--version'])
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 223, in <module>
    setup(
  File "C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\command\install.py", line 546, in run
    self.run_command('build')
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py", line 122, in get_cmake_version
    raise RuntimeError("\n*******************************************************************\n" +
RuntimeError:
*******************************************************************
 CMake must be installed to build the following extensions: dlib
*******************************************************************

----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\Haider\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"'; file='"'"'C:\Users\Haider\AppData\Local\Temp\pip-install-57j0zzf2\dlib_c4a81041578145ff85c50fb1f74112f9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Haider\AppData\Local\Temp\pip-record-lyp_jhye\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Haider\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\dlib' Check the logs for full command output.

@ghost
Copy link

ghost commented Aug 5, 2021

ERROR: Command errored out with exit status 1:
command: 'c:\users\masoud\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Masoud\AppData\Local\Temp\pip-install-yvky_um2\bottleneck_6524b69dbd364c49a39062b334f15af1\setup.py'"'"'; file='"'"'C:\Users\Masoud\AppData\Local\Temp\pip-install-yvky_um2\bottleneck_6524b69dbd364c49a39062b334f15af1\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Masoud\AppData\Local\Temp\pip-record-wjwnm_5q\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\masoud\appdata\local\programs\python\python39\Include\bottleneck'
cwd: C:\Users\Masoud\AppData\Local\Temp\pip-install-yvky_um2\bottleneck_6524b69dbd364c49a39062b334f15af1
Complete output (36 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bottleneck
copying bottleneck\version.py -> build\lib.win-amd64-3.9\bottleneck
copying bottleneck_init_.py -> build\lib.win-amd64-3.9\bottleneck
creating build\lib.win-amd64-3.9\bottleneck\benchmark
copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.9\bottleneck\benchmark
copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.9\bottleneck\benchmark
copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.9\bottleneck\benchmark
copying bottleneck\benchmark_init_.py -> build\lib.win-amd64-3.9\bottleneck\benchmark
creating build\lib.win-amd64-3.9\bottleneck\slow
copying bottleneck\slow\move.py -> build\lib.win-amd64-3.9\bottleneck\slow
copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.9\bottleneck\slow
copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.9\bottleneck\slow
copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.9\bottleneck\slow
copying bottleneck\slow_init_.py -> build\lib.win-amd64-3.9\bottleneck\slow
creating build\lib.win-amd64-3.9\bottleneck\src
copying bottleneck\src\template.py -> build\lib.win-amd64-3.9\bottleneck\src
copying bottleneck\src_init_.py -> build\lib.win-amd64-3.9\bottleneck\src
creating build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\input_modifcation_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\list_input_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\move_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\nonreduce_axis_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\nonreduce_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\reduce_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\scalar_input_test.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests\util.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\tests_init_.py -> build\lib.win-amd64-3.9\bottleneck\tests
copying bottleneck\LICENSE -> build\lib.win-amd64-3.9\bottleneck
running build_ext
building 'bottleneck.reduce' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\masoud\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Masoud\AppData\Local\Temp\pip-install-yvky_um2\bottleneck_6524b69dbd364c49a39062b334f15af1\setup.py'"'"'; file='"'"'C:\Users\Masoud\AppData\Local\Temp\pip-install-yvky_um2\bottleneck_6524b69dbd364c49a39062b334f15af1\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Masoud\AppData\Local\Temp\pip-record-wjwnm_5q\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\masoud\appdata\local\programs\python\python39\Include\bottleneck' Check the logs for full command output.

@Ernest-Tan
Copy link

I'm having problems as well, my problem occurs when I was trying to install face recognition in pip. Hope professionals will be here to help. This problem I believe everyone is confused about right now and also need the best solution for it as well. At first, I was in python version 3.9.7 and I try to change it to 3.8.10 yet the error seemed to look alike as you guys. I've upgraded the pip version to the latest as well yet it doesn't have any change.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests