Pip error command errored out with exit status 1

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 ...

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:UsersHaiderAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘; file='»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d ‘C:UsersHaiderAppDataLocalTemppip-wheel-usp4krfi’
cwd: C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_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:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py», line 120, in get_cmake_version
out = subprocess.check_output([‘cmake’, ‘—version’])
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py», line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py», line 505, in run
with Popen(*popenargs, **kwargs) as process:
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py», line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.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:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py», line 223, in
setup(
File «C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagessetuptools_init_.py», line 153, in setup
return distutils.core.setup(attrs)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscore.py», line 148, in setup
dist.run_commands()
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py», line 966, in run_commands
self.run_command(cmd)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packageswheelbdist_wheel.py», line 299, in run
self.run_command(‘build’)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscommandbuild.py», line 135, in run
self.run_command(cmd_name)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py», line 985, in run_command
cmd_obj.run()
File «C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py», line 129, in run
cmake_version = self.get_cmake_version()
File «C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.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:UsersHaiderAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘; file='»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersHaiderAppDataLocalTemppip-record-lyp_jhyeinstall-record.txt’ —single-version-externally-managed —user —prefix= —compile —install-headers ‘C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includedlib’
cwd: C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_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:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py", line 120, in get_cmake_version
    out = subprocess.check_output(['cmake', '--version'])
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libsubprocess.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:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py", line 223, in <module>
    setup(
  File "C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagessetuptools__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscore.py", line 148, in setup
    dist.run_commands()
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
    cmd_obj.run()
  File "C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagessetuptoolscommandinstall.py", line 61, in run
    return orig.install.run(self)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscommandinstall.py", line 546, in run
    self.run_command('build')
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
    cmd_obj.run()
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscommandbuild.py", line 135, in run
    self.run_command(cmd_name)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
    cmd_obj.run()
  File "C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.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:UsersHaiderAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘; file='»‘»‘C:UsersHaiderAppDataLocalTemppip-install-57j0zzf2dlib_c4a81041578145ff85c50fb1f74112f9setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersHaiderAppDataLocalTemppip-record-lyp_jhyeinstall-record.txt’ —single-version-externally-managed —user —prefix= —compile —install-headers ‘C:UsersHaiderAppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39Includedlib’ Check the logs for full command output.

If you are installing auto-py-to-exe package on Python 3.8 or below, you will get an error stating ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

In this tutorial, we will look into what exactly is ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output and how to fix it.

The auto-py-to-exe library is mainly used to convert the python file(.py) into an executable file (.exe) and run it on windows.

As shown below, we can install the package directly through the pip command in Python 3.8.

$ pip install auto-py-to-exe

The package has an additional dependency on bottle-websocket, which in turn has a dependency on the gevent.

gevent did not release a stable version that offers prebuilt wheels for Python 3.8 during the time of release. Hence, the pip will pick the prebuilt wheels and try to build the gevent==1.4 version from the source dist, resulting in the below error.

ERROR: Command errored out with exit status 1:
    raise distutils.errors.DistutilsPlatformError(err)
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Later they had released the new version, which works without any issue. Let us look at the fix for this issue.

Solution

Currently, there are many versions of gevent released, including prebuilt wheels for Python 3.8 on Windows. You can just execute the below command to install the auto-py-to-exe package.

pip install auto-py-to-exe

If this is not working for you, you can try an alternate solution listed below.

pip3 install --upgrade pip setuptools wheel

If you are not able to install setuptools through pip you can also download Microsoft Visual C++ Build Tools and install it manually.

OR

pip install --no-use-wheel --upgrade distribute
pip install --upgrade setuptools

Once you perform this operation, you can install the auto-py-to-exe package. The same solution applies to other libraries, too, which have a dependency on gevent.

Avatar Of Srinivas Ramakrishna

Srinivas Ramakrishna is a Solution Architect and has 14+ Years of Experience in the Software Industry. He has published many articles on Medium, Hackernoon, dev.to and solved many problems in StackOverflow. He has core expertise in various technologies such as Microsoft .NET Core, Python, Node.JS, JavaScript, Cloud (Azure), RDBMS (MSSQL), React, Powershell, etc.

Sign Up for Our Newsletters

Subscribe to get notified of the latest articles. We will never spam you. Be a part of our ever-growing community.

By checking this box, you confirm that you have read and are agreeing to our terms of use regarding the storage of the data submitted through this form.

In this Python tutorial, we will see how to fix the error, Command errored out with exit status 1 in Python.

The error was coming when I was trying to install the Python strings module by running the below command:

pip install strings

The complete error was coming like below:

ERROR: Command errored out with exit status 1:
command: ‘c:pythonpython38python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:UsersAdministrator.SHAREPOINTSKYAppDataLocalTemppip-install-e261r6jistringssetup.py’”‘”‘; file=’”‘”‘C:UsersAdministrator.SHAREPOINTSKYAppDataLocalTemppip-install-e261r6jistringssetup.py’”‘”‘;f=getattr(tokenize, ‘”‘”‘open’”‘”‘, open)(file);code=f.read().replace(‘”‘”‘rn’”‘”‘, ‘”‘”‘n’”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec’”‘”‘))’ egg_info –egg-base ‘C:UsersAdministrator.SHAREPOINTSKYAppDataLocalTemppip-pip-egg-info-hu8mfm_g’
cwd: C:UsersAdministrator.SHAREPOINTSKYAppDataLocalTemppip-install-e261r6jistrings
Complete output (5 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:UsersAdministrator.SHAREPOINTSKYAppDataLocalTemppip-install-e261r6jistringssetup.py”, line 5, in
import strings
ModuleNotFoundError: No module named ‘strings’
—————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Below image shows the screenshot of error:

Command errored out with exit status 1

Command errored out with exit status 1

There was no issue with the command, one file with name string.py was causing the issue.

As you can see below there was filename string.py in the same folder which was causing the issue.

To fix the issue, we need to simply delete the string.py file from the folder.

Ideally, we should not create any file with name as string.py.

Command errored out with exit status 1 python
Command errored out with exit status 1 python

AttributeError: partially initialized module ‘random’ has no attribute ‘randint’

The above same file name (string.py) issue might give the below error also,

AttributeError: partially initialized module ‘random’ has no attribute ‘randint’ (most likely due to a circular import).

Follow the same delete the file solution to fix this issue also.

You may like the following python tutorials:

  • Python epoch to DateTime + Examples
  • Priority queue in Python
  • Python 3 pickle typeerror a bytes-like object is required not ‘str’
  • Python binary search and linear search
  • Sorting algorithms in Python
  • Working with JSON data in Python
  • Python GUI Programming
  • Increment and Decrement operators in Python
  • Constructor in Python
  • How to convert dictionary to JSON in Python

Here, we learned how to fix the below two errors in Python:

  • Command errored out with exit status 1 python
  • AttributeError: partially initialized module ‘random’ has no attribute ‘randint’

Bijay Kumar MVP

Python is one of the most popular languages in the United States of America. I have been working with Python for a long time and I have expertise in working with various libraries on Tkinter, Pandas, NumPy, Turtle, Django, Matplotlib, Tensorflow, Scipy, Scikit-Learn, etc… I have experience in working with various clients in countries like United States, Canada, United Kingdom, Australia, New Zealand, etc. Check out my profile.

ERROR: Command errored out with exit status 1 mysqlclient: I was installing mysqlclient for my new Django project in my newly installed Ubuntu Linux. And after doing pip install mysqlclient, I got an error of ERROR: Command errored out with exit status 1:

(env) [email protected]:~/Projects/aeck$ pip3 install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-2.0.3.tar.gz (88 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/codie/Projects/aeck/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4_d_xjb9/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4_d_xjb9/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-4_d_xjb9/mysqlclient/pip-egg-info
         cwd: /tmp/pip-install-4_d_xjb9/mysqlclient/
    Complete output (15 lines):
    /bin/sh: 1: mysql_config: not found
    /bin/sh: 1: mariadb_config: not found
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-4_d_xjb9/mysqlclient/setup.py", line 15, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-4_d_xjb9/mysqlclient/setup_posix.py", line 70, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-4_d_xjb9/mysqlclient/setup_posix.py", line 31, in mysql_config
        raise OSError("{} not found".format(_mysql_config_path))
    OSError: mysql_config not found
    mysql_config --version
    mariadb_config --version
    mysql_config --libs
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Also, solve your issue for psycopg2 error install ubuntu

So, how can we fix the issue of /bin/sh: 1: mysql_config: not found or /bin/sh: 1: mariadb_config: not found.

I did some research and after digging the web for 15 minutes, I got the fix for this issue.

To fix the issue of pip install mysqlclient error, you just need to copy the below codes and execute them in your bash-shell.

Install the python3-dev package

python-dev contains the header files that the system needs to build Python extensions. It is used by lxml because it includes Python C extensions for high performance.

sudo apt-get install python3-dev

lxml is a Python C-API extension that is compiled when we run the command pip install lxml.

The lxml sources have at least something like #include <Python.h> in the code. The compiler looks for the header file Python.h during compilation, hence those header files need to be on your system such that they can be found.

Also, solve: Django MySQLClient pip compile failure on Linux

(env) [email protected]:~/Projects/aeck$ sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libssl-dev libssl1.1
Suggested packages:
  libssl-doc
The following NEW packages will be installed:
  libmysqlclient-dev libssl-dev
The following packages will be upgraded:
  libssl1.1
1 upgraded, 2 newly installed, 0 to remove and 107 not upgraded.
Need to get 4,437 kB of archives.
After this operation, 17.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.3 [1,320 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl-dev amd64 1.1.1f-1ubuntu2.3 [1,582 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient-dev amd64 8.0.23-0ubuntu0.20.04.1 [1,536 kB]
Fetched 4,437 kB in 5s (921 kB/s)               
Preconfiguring packages ...
(Reading database ... 132596 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2.3_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.3) over (1.1.1f-1ubuntu2.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.1.1f-1ubuntu2.3_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1f-1ubuntu2.3) ...
Selecting previously unselected package libmysqlclient-dev.
Preparing to unpack .../libmysqlclient-dev_8.0.23-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libmysqlclient-dev (8.0.23-0ubuntu0.20.04.1) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.3) ...
Setting up libssl-dev:amd64 (1.1.1f-1ubuntu2.3) ...
Setting up libmysqlclient-dev (8.0.23-0ubuntu0.20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

Installing dependency for mysqlclient

Now, you just need to install the dependency for mysqlclient called libmysqlclient-dev.

sudo apt-get install libmysqlclient-dev

libmysqlclient-dev is a package that provides all the essential dependencies and resources to the system required for the functioning of mysqlclient.

For Python3.9

sudo apt-get install python3.9-dev build-essential

Finally, pip install mysqlclient

Now, you can install mysqlclient with no tension.

python3 -m pip install mysqlclient
or
pip3 install mysqlclient

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to install django-heroku And I am facing following error ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

Contents

  1. How ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error Occurs ?
  2. How To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error ?
  3. Solution 1: Use this command
  4. Solution 2: For macOS
  5. Solution 3: Just Install python-dev && libpq-dev
  6. Solution 4: add the package containing the executable pg_config
  7. Summary

I am trying to install django-heroku And I am facing following error.

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  Please add t .   he directory
containing pg_config to the $PATH or specify the full executable
path with the
option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

If you prefer to avoid building psycopg2 from source, please
install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file
(also at
<http://initd.org/psycopg/docs/install.html>).

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

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

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

    To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error This command worked for me on Ubuntu. sudo apt-get install libpq-dev. If you are using macOS then simply run this command And your error will be solve. brew install postgresql. You just need to install libpq-dev and python-dev using following command. Or Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

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

    To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error This command worked for me on Ubuntu. sudo apt-get install libpq-dev. If you are using macOS then simply run this command And your error will be solve. brew install postgresql. You just need to install libpq-dev and python-dev using following command. Or Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

Solution 1: Use this command

This command worked for me on Ubuntu.

sudo apt-get install libpq-dev

Solution 2: For macOS

If you are using macOS then simply run this command And your error will be solve.

brew install postgresql

Solution 3: Just Install python-dev && libpq-dev

You just need to install libpq-dev and python-dev using following command.

sudo apt-get install libpq-dev python-dev

Solution 4: add the package containing the executable pg_config

Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

  • AttributeError: module ‘time’ has no attribute ‘clock’

Понравилась статья? Поделить с друзьями:
  • Pioneer ошибка sd05
  • Pioneer vsx 819h сброс ошибок
  • Pioneer vsx 527 сброс ошибок
  • Pioneer vsx 418 сброс ошибок
  • Pip install выдает ошибку syntaxerror invalid syntax