FileNotFoundError: [WinError 2] The system cannot find the file specified (Openai-universe) - openai-api

I am trying to install universe but every time i do pip install universe i get this error [WinError 2]The system cannot find the file specified this is NOT the full error the full error goes like this:
Collecting universe
Using cached universe-0.21.3.tar.gz (136 kB)
Collecting autobahn>=0.16.0
Using cached autobahn-20.7.1-py2.py3-none-any.whl (1.5 MB)
Collecting docker-py==1.10.3
Using cached docker_py-1.10.3-py2.py3-none-any.whl (48 kB)
Collecting docker-pycreds==0.2.1
Using cached docker_pycreds-0.2.1-py2.py3-none-any.whl (4.5 kB)
Collecting fastzbarlight>=0.0.13
Using cached fastzbarlight-0.0.14.tar.gz (728 kB)
Note: you may need to restart the kernel to use updated packages.
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\pythonw.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER-A~1\\AppData\\Local\\Temp\\pip-install-1vxwxj7j\\fastzbarlight\\setup.py'"'"'; __file__='"'"'C:\\Users\\ANAN-A~1\\AppData\\Local\\Temp\\pip-install-1vxwxj7j\\fastzbarlight\\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\ANAN-A~1\AppData\Local\Temp\pip-pip-egg-info-k7u0i11p'
cwd: C:\Users\USER~1\AppData\Local\Temp\pip-install-1vxwxj7j\fastzbarlight\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER~1\AppData\Local\Temp\pip-install-1vxwxj7j\fastzbarlight\setup.py", line 49, in <module>
proc = subprocess.Popen(['ld', '-liconv'], stderr=subprocess.PIPE)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
and after those words have been mentioned i get:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

Related

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

[root#izj6c4tgce8abugvzaupm7z project_name]# pipenv install django-haystack
Installing django-haystack...
Error: An error occurred while installing django-haystack!
Error text: Looking in indexes: https://pypi.python.org/simple
Collecting django-haystack
Using cached django-haystack-3.0.tar.gz (450 kB)
ERROR: Command errored out with exit status 1:
command: /root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ac13_sr7/django-haystack/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ac13_sr7/django-haystack/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 /tmp/pip-pip-egg-info-_1nzjnvl
cwd: /tmp/pip-install-ac13_sr7/django-haystack/
Complete output (33 lines):
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm
Traceback (most recent call last):
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/local/python3/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptx16e019', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ac13_sr7/django-haystack/setup.py", line 65, in <module>
test_suite="test_haystack.run_tests.run_all",
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/dist.py", line 676, in fetch_build_eggs
replace_conflicting=True,
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 766, in resolve
replace_conflicting=replace_conflicting
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1061, in obtain
return installer(requirement)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/lib/python3.7/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/root/.local/share/virtualenvs/stdworkflow-yjFasZlk/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmptx16e019', '--quiet', '--index-url', 'http://mirrors.aliyun.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
the pipenv install command have worked very well before, but today it gives this error message. Does anyone know this issue?
I also tried to install other packages to test if it's a problem of the package or the source, for example, pipenv install numpy, but still, it gives me the same error messages.
Sorry I'm back, I solved my problem just now, I should have if I searched longer. This works for my problem:
cd project_name
pipenv install setuptools_scm
pipenv install django-haystack
although I don't know the reason, but a setuptools_scm package is needed.

ERROR: Failed building wheel for [Python Package] | Issue with wheels (sometimes) [duplicate]

This question already has answers here:
How do you fix "runtimeError: package fails to pass a sanity check" for numpy and pandas?
(9 answers)
Closed 2 years ago.
Whenever I install a python package that requires wheels, I get this error:
$ pip install PyWavelets
Collecting PyWavelets
Downloading PyWavelets-1.1.1.tar.gz (4.6 MB)
|████████████████████████████████| 4.6 MB 344 kB/s
Requirement already satisfied: numpy>=1.13.3 in c:\users\MYUSERNAME\appdata\local\programs\python\python39\lib\site-packages (from PyWav
elets) (1.19.4)
Building wheels for collected packages: PyWavelets
Building wheel for PyWavelets (setup.py) ... - ** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
error
ERROR: Command errored out with exit status 1:
command: 'c:\users\MYUSERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0]
= '"'"'C:\\Users\\MYUSERNAME\\AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"'; __file__='"'"'C:\\Users\\MYUSERNAME\\Ap
pData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read
().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\MYUSERNAME\Ap
pData\Local\Temp\pip-wheel-ns2hq1xm'
cwd: C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\
Complete output (15 lines):
C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py:62: DeprecationWarning: the imp module is deprecated i
n favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 477, in <module>
setup_package()
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 467, in setup_package
ext_modules = get_ext_modules(USE_CYTHON)
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 182, in get_ext_modules
from numpy import get_include as get_numpy_include
File "c:\users\MYUSERNAME\appdata\local\programs\python\python39\lib\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "c:\users\MYUSERNAME\appdata\local\programs\python\python39\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('c:\\users\\MYUSERNAME\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\
numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https:/
/STACKOVERFLOW DOESN'T LIKE TINYURL
----------------------------------------
ERROR: Failed building wheel for PyWavelets
Running setup.py clean for PyWavelets
ERROR: Command errored out with exit status 1:
command: 'c:\users\MYUSERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0]
= '"'"'C:\\Users\\MYUSERNAME\\AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"'; __file__='"'"'C:\\Users\\MYUSERNAME\\Ap
pData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read
().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
cwd: C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets
Complete output (11 lines):
C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py:62: DeprecationWarning: the imp module is deprecated i
n favour of importlib; see the module's documentation for alternative uses
import imp
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
ERROR: Failed cleaning build dir for PyWavelets
Failed to build PyWavelets
Installing collected packages: PyWavelets
Running setup.py install for PyWavelets ... - ** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
error
ERROR: Command errored out with exit status 1:
command: 'c:\users\MYUSERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[
0] = '"'"'C:\\Users\\MYUSERNAME\\AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"'; __file__='"'"'C:\\Users\\MYUSERNAME\\
AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.re
ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\erik
u\AppData\Local\Temp\pip-record-apt8ex91\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\us
ers\MYUSERNAME\appdata\local\programs\python\python39\Include\PyWavelets'
cwd: C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\
Complete output (24 lines):
C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py:62: DeprecationWarning: the imp module is deprecated
in favour of importlib; see the module's documentation for alternative uses
import imp
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install PyWavelets` (last PyWavelets release on PyPI)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 477, in <module>
setup_package()
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 467, in setup_package
ext_modules = get_ext_modules(USE_CYTHON)
File "C:\Users\MYUSERNAME\AppData\Local\Temp\pip-install-8tqnlgrn\pywavelets\setup.py", line 182, in get_ext_modules
from numpy import get_include as get_numpy_include
File "c:\users\MYUSERNAME\appdata\local\programs\python\python39\lib\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "c:\users\MYUSERNAME\appdata\local\programs\python\python39\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('c:\\users\\MYUSERNAME\\appdata\\local\\programs\\python\\python39\\lib\\site-packages
\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https
:STACKOVERFLOW DOESN'T LIKE TINYURL
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\MYUSERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys
, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MYUSERNAME\\AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"';
__file__='"'"'C:\\Users\\MYUSERNAME\\AppData\\Local\\Temp\\pip-install-8tqnlgrn\\pywavelets\\setup.py'"'"';f=getattr(tokenize, '"'"'ope
n'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))
' install --record 'C:\Users\MYUSERNAME\AppData\Local\Temp\pip-record-apt8ex91\install-record.txt' --single-version-externally-managed -
-compile --install-headers 'c:\users\MYUSERNAME\appdata\local\programs\python\python39\Include\PyWavelets' Check the logs for full comma
nd output.
I do not know whether this is an issue with wheel or pip!
These are my system specs:
Host Name: DESKTOP
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: (not leaking my E-Mail here, folks)
Registered Organization: N/A
Product ID: (not leaking this either)
Original Install Date: 15/08/2020, 22:55:17
System Boot Time: 07/11/2020, 09:52:30
System Manufacturer: Micro-Star International Co., Ltd.
System Model: MS-7B09
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 23 Model 1 Stepping 1 AuthenticAMD ~3500 Mhz
BIOS Version: American Megatrends Inc. A.70, 14/11/2018
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume6
System Locale: en-us;English (United States)
Input Locale: (take a wild guess)
Time Zone: (Im always awake)
Total Physical Memory: 65.428 MB
Available Physical Memory: 52.078 MB
Virtual Memory: Max Size: 75.156 MB
Virtual Memory: Available: 52.887 MB
Virtual Memory: In Use: 22.269 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\DESKTOP
As you see, I'm using BASH for Windows! Anything will help!
(again, PyWavelets is just an example here! This happens with a lot of packages)
I do not know why this occurs, I reinstalled python just today etc. Most things on this machine are fairly fresh and clear. If you can read anything out of these errors, I'd be very thankful if you could post it here.
There is a bug in windows which is causing this issue as shown in the error message.
The temporary solution is to use numpy 1.19.3. You have 1.19.4.
pip uninstall numpy
pip install numpy==1.19.3
then run your installation script again.
From this Microsoft thread fix will be available around January 2021.
This occurred because I was using Python3.9 which is fairly new, which is why none of the packages I was using (including wheel) worked. This is a python error.
Installing python 3.8 (and adding it to the PATH) fixed the issue

Pygame - No "Setup" File Exists, Running "buildconfig/config.py"

This is the error message:
C:\Users\DELL G5 5590>pip install pygame Collecting pygame Using
cached pygame-1.9.6.tar.gz (3.2 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell g5 5590\appdata\local\programs\python\python39\python.exe' -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\DELL G5
5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\setup.py'"'"';
file='"'"'C:\Users\DELL G5 5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\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\DELL G5
5590\AppData\Local\Temp\pip-pip-egg-info-3vk36105'
cwd: C:\Users\DELL G5 5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame
Complete output (17 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using WINDOWS configuration...
**Download prebuilts to "prebuilt_downloads" and copy to
"./prebuilt-x64"? [Y/n]Traceback (most recent call last): File
"", line 1, in File "C:\Users\DELL G5
5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\setup.py", line
194, in
buildconfig.config.main(AUTO_CONFIG) File "C:\Users\DELL G5 5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\buildconfig\config.py",
line 210, in main
deps = CFG.main(**kwds) File "C:\Users\DELL G5 5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\buildconfig\config_win.py",
line 576, in main
and download_win_prebuilt.ask(**download_kwargs): File "C:\Users\DELL G5
5590\AppData\Local\Temp\pip-install-qjygq5mc\pygame\buildconfig\download_win_prebuilt.py",
line 302, in ask
reply = raw_input( EOFError: EOF when reading a line
**
ERROR: Command errored out with exit status 1: python setup.py
egg_info Check the logs for full command output.
The OS is Windows.
I had the same problem and found the solution:
Ok, before giving the solution, let me explain the error...
It is because pygame has not yet released an update for python3.9. They are working with "dev"(pre) versions.
--->>> here's the latest version v2.0.0.dev14
Therefore as this is not yet an official release, the pip install pygame command will not find a compatible configuration for this.
So you should use pip install pygame --pre.
--pre
Include pre-release and development versions. By default, pip only finds stable versions.
Then, take a look at pip Guide.

PyPotrace pip Install Error on Jupyter Notebook

I am trying to install potrace in my jupyter notebook virtual env but I am running into this error code. I have looked around for any known fixes on jupyter notebook but I can't find any, does anyone know how to fix this?
As per the first comment: I reinstalled pkg-config (via brew) and re ran the program which unfortunately did not fix the issue.
ERROR CODE:
pip install pypotrace
Collecting pypotrace
Using cached pypotrace-0.2.tar.gz (26 kB)
ERROR: Command errored out with exit status 1:
command: /Users/user/.local/share/virtualenvs/user-c-cRme8X/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py'"'"'; __file__='"'"'/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/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 /private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/pip-egg-info
cwd: /private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/
Complete output (25 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/setup.py", line 4, in <module>
setup()
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 149, in setup
parsed_setup_cfg = parse_setup_cfg(fp, cythonize=cythonize)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 222, in parse_setup_cfg
return _expand_cython_modules(config, cythonize, pkg_config, base_dir)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 230, in _expand_cython_modules
module_dict = _expand_one_cython_module(config, section, cythonize,
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 239, in _expand_one_cython_module
_expand_pkg_config_pkgs(config, section, pkg_config)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 299, in _expand_pkg_config_pkgs
extra_compile_args = pkg_config(pkg_names, '--cflags', env)
File "/private/var/folders/c0/fx27s5mn44d8wj3trxnn_0940000gn/T/pip-install-d3s_0svw/pypotrace/cysetuptools.py", line 308, in _run_pkg_config
return subprocess.check_output(['pkg-config', command] + pkg_names,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/python#3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Appreciate any help I can get!
Your error says that its missing pkg-config package.
Try installing it using : sudo apt install -y pkg-config (linux) or brew install pkg-config (MacOS)

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

I am trying to install gumpy on my computer but I ran into this Error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I use pip install gumpy code to install it and My python version is 3.6
I would be grateful if any one can help me
this is full error that is shown to me:
C:\Users\Hp>pip install gumpy
Collecting gumpy
Using cached https://files.pythonhosted.org/packages/d8/41/4a43289f78b2b2bc8fa
ac7cce8fefc414932d3adbe7df90835faec182524/gumpy-0.1-py3-none-any.whl
Collecting Biopython>=1.70
Using cached https://files.pythonhosted.org/packages/06/c2/ce4f74ce5dd00f02189
b3abf3cfce138f615c285d56f65d69cc994162f97/biopython-1.75-cp36-cp36m-win_amd64.wh
l
Collecting tqdm>=4.19.5
Using cached https://files.pythonhosted.org/packages/7f/32/5144caf0478b1f26bd9
d97f510a47336cf4ac0f96c6bc3b5af20d4173920/tqdm-4.40.2-py2.py3-none-any.whl
Collecting pytest>=4.0.0
Using cached https://files.pythonhosted.org/packages/19/cf/711f1d887cb92c5155c
9a1eb338f1b5d2411b50e4492a3b20e4a188a22b2/pytest-5.3.2-py3-none-any.whl
Collecting pysam>=0.15.2
Using cached https://files.pythonhosted.org/packages/15/e7/2dab8bb0ac739555e69
586f1492f0ff6bc4a1f8312992a83001d3deb77ac/pysam-0.15.3.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\hp\appdata\local\programs\python\python36\python.exe' -c
'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Hp\\AppData\\L
ocal\\Temp\\pip-install-ptmps6t8\\pysam\\setup.py'"'"'; __file__='"'"'C:\\Users\
\Hp\\AppData\\Local\\Temp\\pip-install-ptmps6t8\\pysam\\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\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\pip-egg-in
fo'
cwd: C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\
Complete output (23 lines):
# pysam: cython is available - using cythonize if necessary
# pysam: htslib mode is shared
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
'.' is not recognized as an internal or external command,
operable program or batch file.
'.' is not recognized as an internal or external command,
operable program or batch file.
# pysam: htslib configure options: None
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 241, in <module>
htslib_make_options = run_make_print_config()
File "C:\Users\Hp\AppData\Local\Temp\pip-install-ptmps6t8\pysam\setup.py",
line 68, in run_make_print_config
stdout = subprocess.check_output(["make", "-s", "print-config"])
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 356, in check_output
**kwargs).stdout
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 729, in __init__
restore_signals, start_new_session)
File "c:\users\hp\appdata\local\programs\python\python36\lib\subprocess.py
", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
I had the same issue when running few python3 packages on my windows10 platform. I did add the path, but still did not work, then I tried a repair procedure that did not work either. Finally I had to uninstall and re install python3.7.7 [not from the wondows store, but from the official website]. That seemed to solve the issue apparently.

Resources