Collecting dlib
Using cached dlib-19.19.0.tar.gz (3.2 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\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\HP\AppData\Local\Temp\pip-wheel-sam_vsqz'
cwd: C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
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\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\envs\env_dlib\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
CMake must be installed to build the following extensions: dlib
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\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\HP\AppData\Local\Temp\pip-record-77ybyx6j\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda\envs\env_dlib\Include\dlib'
cwd: C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
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\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 261, in <module>
'Topic :: Software Development',
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools\__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\envs\env_dlib\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "D:\anaconda\envs\env_dlib\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\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\HP\AppData\Local\Temp\pip-record-77ybyx6j\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda\envs\env_dlib\Include\dlib' Check the logs for full command output.
Run the following command in Anaconda Prompt.
easy_install dlib
Related
I followed the instructions on how to install JamSpell spell checking library.
I installed swig by running brew install swig (v. 4.0.2), but I cannot manage to install the library with pip install jamspell on macOS Big Sur, Python3 (not even with sudo).
Error log:
WARNING: The directory '/Users/ljudmilapetkovic/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
Collecting jamspell
Downloading jamspell-0.0.12.tar.gz (174 kB)
|████████████████████████████████| 174 kB 4.1 MB/s
Building wheels for collected packages: jamspell
Building wheel for jamspell (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/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 /private/tmp/pip-wheel-bw5_k9h5
cwd: /private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/
Complete output (41 lines):
running bdist_wheel
running build
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 37, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
----------------------------------------
ERROR: Failed building wheel for jamspell
Running setup.py clean for jamspell
Failed to build jamspell
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
Installing collected packages: jamspell
Running setup.py install for jamspell ... error
ERROR: Command errored out with exit status 1:
command: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/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 /private/tmp/pip-record-lu0nx9hk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ljudmilapetkovic/opt/anaconda3/include/python3.8/jamspell
cwd: /private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/
Complete output (34 lines):
running install
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 43, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/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 /private/tmp/pip-record-lu0nx9hk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ljudmilapetkovic/opt/anaconda3/include/python3.8/jamspell Check the logs for full command output.
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
python setup.py install does not help either:
running install
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 43, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
What is going on here?
Having encountered this same exact problem with your same desktop specs, this thread should fix your problem. It took a long while for me to find this buried discussion, but since your post came up at the very top of my original search results, I'm hoping that keeping this up can guide other people to a solution much more quickly.
I'm linking it here but also including the solution that worked for me:
Manually download swig3 via sourceforge
Extract the zipped download folder
Run the following via terminal:
Downloads/swig-3.0.12/configure && make && make install
Running this command will display a very long output and take ~1 minute
Run pip install jamspell
Terminal may appear to "hesitate" for a second longer than it would with the normal installation process before building wheels for the package:
It'll tell you the package has been installed, but you will not see the usual:
Downloading jamspell-0.0.12.tar.gz (174 kB) |████████████████████████████████| 174 kB 4.1 MB/s
An alternative is, if you just run the package via Co-Lab, it'll work. The only downside I suppose is that you'll have to reinstall the package every time you reconnect.
C:\Users\Peter>pip install face-recognition
Collecting face-recognition
Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\peter\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from face-recognition) (0.3.0)
Requirement already satisfied: numpy in c:\users\peter\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from face-recognition) (1.19.1)
Requirement already satisfied: Pillow in c:\users\peter\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from face-recognition) (7.2.0)
Collecting dlib>=19.7
Using cached dlib-19.20.0.tar.gz (3.2 MB)
Requirement already satisfied: Click>=6.0 in c:\users\peter\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from face-recognition) (7.1.2)
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib, face-recognition
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Peter\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-1wn8ktik\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-1wn8ktik\\dlib\\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\Peter\AppData\Local\Temp\pip-record-s9fezs_8\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Peter\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\dlib'
cwd: C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib\__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1307, 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\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py", line 223, in <module>
setup(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.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.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.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.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.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.8_3.8.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.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\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\Peter\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-1wn8ktik\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-1wn8ktik\\dlib\\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\Peter\AppData\Local\Temp\pip-record-s9fezs_8\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Peter\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\dlib' Check the logs for full command output.
What could be done to solve this issue?
Below is the error while trying to install pylint
Building wheel for wrapt (setup.py) ... error
ERROR: Complete output from command 'c:\users\krish\envs\test\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\krish\\AppData\\Local\\Temp\\pip-install-fb16pmh5\\wrapt\\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\krish\AppData\Local\Temp\pip-wheel-3uw9a2l7' --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.6\wrapt
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\users\krish\envs\test\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cygwinccompiler.py", line 282, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cygwinccompiler.py", line 126, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
ERROR: Failed building wheel for wrapt
Running setup.py clean for wrapt
Failed to build wrapt
Installing collected packages: wrapt, astroid, colorama, pylint
Running setup.py install for wrapt ... error
ERROR: Complete output from command 'c:\users\krish\envs\test\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\krish\\AppData\\Local\\Temp\\pip-install-fb16pmh5\\wrapt\\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\krish\AppData\Local\Temp\pip-record-cmm8ca3u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\krish\envs\test\include\site\python3.6\wrapt':
ERROR: running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\wrapt
copying src\wrapt\decorators.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\importer.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\wrappers.py -> build\lib.win32-3.6\wrapt
copying src\wrapt\__init__.py -> build\lib.win32-3.6\wrapt
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 101, in <module>
run_setup(with_extensions=True)
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 71, in run_setup
setup(**setup_kwargs_tmp)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\users\krish\envs\test\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\setup.py", line 25, in run
build_ext.run(self)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\command\build_ext.py", line 308, in run
force=self.force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\ccompiler.py", line 1031, in new_compiler
return klass(None, dry_run, force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cygwinccompiler.py", line 282, in __init__
CygwinCCompiler.__init__ (self, verbose, dry_run, force)
File "c:\users\krish\appdata\local\programs\python\python36-32\Lib\distutils\cygwinccompiler.py", line 126, in __init__
if self.ld_version >= "2.10.90":
TypeError: '>=' not supported between instances of 'NoneType' and 'str'
----------------------------------------
ERROR: Command "'c:\users\krish\envs\test\scripts\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\krish\\AppData\\Local\\Temp\\pip-install-fb16pmh5\\wrapt\\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\krish\AppData\Local\Temp\pip-record-cmm8ca3u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\krish\envs\test\include\site\python3.6\wrapt'" failed with error code 1 in C:\Users\krish\AppData\Local\Temp\pip-install-fb16pmh5\wrapt\
Got stuck on similar problem and solved it by installing wheel.
pip3 install wheel
pip3 install pylint
I cannot install gevent within a virtualenv with
CFLAGS='-std=c99' pip install gevent
I have tried CFLAGS='-std=c99' pip install gevent as suggested here as well as with sudo but it still doesn't work. Frustratingly, I can install with no problems outside my virtualenv. Here is the error:
configure: error: in `/Users/mc/.virtualenvs/mmbot/build/gevent/deps/libev':
configure: error: C compiler cannot create executables
See `config.log' for more details
Running '(cd "/Users/mc/.virtualenvs/mmbot/build/gevent/deps/libev" && sh ./configure && cp config.h "$OLDPWD" ) > configure-output.txt' in /Users/mc/.virtualenvs/mmbot/build/gevent/build/temp.macosx-10.12-x86_64-2.7/libev
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/mc/.virtualenvs/mmbot/build/gevent/setup.py", line 183, in <module>
run_setup(EXT_MODULES, run_make=_BUILDING)
File "/Users/mc/.virtualenvs/mmbot/build/gevent/setup.py", line 168, in run_setup
"Development Status :: 4 - Beta"
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/setuptools/command/install.py", line 59, in run
return orig.install.run(self)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 563, in run
self.run_command('build')
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 49, in run
_build_ext.run(self)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "_setuputils.py", line 159, in build_extension
self.gevent_prepare(ext)
File "_setuputils.py", line 156, in gevent_prepare
configure(self, ext)
File "_setuplibev.py", line 55, in configure_libev
system(libev_configure_command)
File "_setuputils.py", line 139, in system
if _system(cmd):
File "_setuputils.py", line 135, in _system
return check_call(cmd, shell=True)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/Users/mc/.virtualenvs/mmbot/build/gevent/deps/libev" && sh ./configure && cp config.h "$OLDPWD" ) > configure-output.txt' returned non-zero exit status 77
----------------------------------------
Cleaning up...
Removing temporary dir /Users/mc/.virtualenvs/mmbot/build...
Command /Users/mc/.virtualenvs/mmbot/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/mc/.virtualenvs/mmbot/build/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip-Nvp9pA-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mc/.virtualenvs/mmbot/bin/../include/site/python2.7 failed with error code 1 in /Users/mc/.virtualenvs/mmbot/build/gevent
Exception information:
Traceback (most recent call last):
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Users/mc/.virtualenvs/mmbot/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/mc/.virtualenvs/mmbot/bin/python2.7 -c "import setuptools, tokenize;__file__='/Users/mc/.virtualenvs/mmbot/build/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip-Nvp9pA-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mc/.virtualenvs/mmbot/bin/../include/site/python2.7 failed with error code 1 in /Users/mc/.virtualenvs/mmbot/build/gevent
I get an error when running jedi:install-server which I don't know how to fix:
Running setup.py install for jediepcserver
Traceback (most recent call last):
File \"<string>\", line 1, in <module>
File \"/tmp/pip-MLAXK5-build/setup.py\", line 25, in <module>
**args
File \"/home/ehere/anaconda2/lib/python2.7/distutils/core.py\", line 151, in setup
dist.run_commands()
File \"/home/ehere/anaconda2/lib/python2.7/distutils/dist.py\", line 953, in run_commands
self.run_command(cmd)
File \"/home/ehere/anaconda2/lib/python2.7/distutils/dist.py\", line 972, in run_command
cmd_obj.run()
File \"/home/ehere/.emacs.d/.python-environments/default/lib/python2.7/site-packages/setuptools/command/install.py\", line 61, in run
return orig.install.run(self)
File \"/home/ehere/anaconda2/lib/python2.7/distutils/command/install.py\", line 575, in run
self.run_command(cmd_name)
File \"/home/ehere/anaconda2/lib/python2.7/distutils/cmd.py\", line 326, in run_command
self.distribution.run_command(command)
File \"/home/ehere/anaconda2/lib/python2.7/distutils/dist.py\", line 971, in run_command
cmd_obj.ensure_finalized()
File \"/home/ehere/anaconda2/lib/python2.7/distutils/cmd.py\", line 109, in ensure_finalized
self.finalize_options()
File \"/home/ehere/.emacs.d/.python-environments/default/lib/python2.7/site-packages/setuptools/command/install_lib.py\", line 16, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File \"/home/ehere/anaconda2/lib/python2.7/distutils/cmd.py\", line 302, in set_undefined_options
getattr(src_cmd_obj, src_option))
File \"/home/ehere/anaconda2/lib/python2.7/distutils/cmd.py\", line 105, in __getattr__
raise AttributeError, attr
AttributeError: install_layout
Complete output from command /home/ehere/.emacs.d/.python-environments/default/bin/python2 -c \"import setuptools, tokenize;__file__='/tmp/pip-MLAXK5-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-uD7aIs-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ehere/.emacs.d/.python-environments/default/include/site/python2.7:
running install
Strangly I can install jediepcserver manually using pip -U /path/to/jedi-core/, but somehow when running it from inside emacs it does not work. Anyone has a clue what is going on here?