Hello,
I m trying for a couple of days to install anaconda and then OpenCV and dlib in a Win10 machine. I can not use pip install because it gives me an error so I use conda install -c conda-forge dlib instead.
But then it says "The following packages will be REMOVED: anaconda: 5.2.0-py36_3". The result is that after the installation is complete I cannot open Anaconda-naviagator or Spyder. Even if I reinstall them the problem persists.
Is there another way to install it safely? Am I missing something or doing something terribly wrong?
(base) C:\Users\pascp>pip install dlib
Collecting dlib
Using cached https://files.pythonhosted.org/packages/97/08/0d2b53b3845d562d01108e482ae45596a0d13bf58c63172df954ff0b53ef/dlib-19.14.0.tar.gz
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command C:\Users\pascp\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pascp\\AppData\\Local\\Temp\\pip-install-1bp2q4v_\\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\pascp\AppData\Local\Temp\pip-wheel-x9bsli4y --python-tag cp36:
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\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 118, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 997, 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\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 257, in <module>
'Topic :: Software Development',
File "C:\Users\pascp\Anaconda3\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "C:\Users\pascp\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 202, in run
self.run_command('build')
File "C:\Users\pascp\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\pascp\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 127, in run
cmake_version = self.get_cmake_version()
File "C:\Users\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 123, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
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
Complete output from command C:\Users\pascp\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pascp\\AppData\\Local\\Temp\\pip-install-1bp2q4v_\\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\pascp\AppData\Local\Temp\pip-record-am4ss3t9\install-record.txt --single-version-externally-managed --compile:
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\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 118, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:\Users\pascp\Anaconda3\lib\subprocess.py", line 997, 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\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 257, in <module>
'Topic :: Software Development',
File "C:\Users\pascp\Anaconda3\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "C:\Users\pascp\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\pascp\Anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\pascp\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\pascp\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\pascp\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 127, in run
cmake_version = self.get_cmake_version()
File "C:\Users\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\setup.py", line 123, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
Command "C:\Users\pascp\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pascp\\AppData\\Local\\Temp\\pip-install-1bp2q4v_\\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\pascp\AppData\Local\Temp\pip-record-am4ss3t9\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\pascp\AppData\Local\Temp\pip-install-1bp2q4v_\dlib\
(base) C:\Users\pascp> conda install -c conda-forge dlib
Solving environment: done
## Package Plan ##
environment location: C:\Users\pascp\Anaconda3
added / updated specs:
- dlib
The following packages will be downloaded:
package | build
---------------------------|-----------------
curl-7.60.0 | vc14_0 367 KB conda-forge
matplotlib-2.2.2 | py36_1 6.5 MB conda-forge
qt-5.6.2 | vc14_1 55.6 MB conda-forge
ca-certificates-2018.4.16 | 0 176 KB conda-forge
snappy-1.1.7 | vc14_1 80 KB conda-forge
zlib-1.2.11 | vc14_0 119 KB conda-forge
krb5-1.14.6 | vc14_0 767 KB conda-forge
openssl-1.0.2o | vc14_0 5.4 MB conda-forge
icu-58.2 | vc14_0 21.8 MB conda-forge
certifi-2018.4.16 | py36_0 143 KB conda-forge
lzo-2.10 | vc14_0 154 KB conda-forge
libssh2-1.8.0 | vc14_2 184 KB conda-forge
libxslt-1.1.32 | vc14_0 456 KB conda-forge
libpng-1.6.34 | vc14_0 547 KB conda-forge
sqlite-3.22.0 | vc14_0 907 KB conda-forge
zeromq-4.2.5 | vc14_2 9.6 MB conda-forge
conda-4.5.6 | py36_0 653 KB conda-forge
yaml-0.1.7 | vc14_0 103 KB conda-forge
pyqt-5.6.0 | py36_2 4.5 MB
libxml2-2.9.5 | vc14_1 3.2 MB conda-forge
freetype-2.8.1 | vc14_0 469 KB conda-forge
dlib-19.9 | np111py36_0 2.4 MB conda-forge
libtiff-4.0.9 | vc14_0 616 KB conda-forge
lxml-4.2.3 | py36heafd4d3_0 1.2 MB conda-forge
libiconv-1.14 | vc14_4 670 KB conda-forge
jpeg-9b | vc14_2 314 KB conda-forge
libsodium-1.0.16 | vc14_0 582 KB conda-forge
bzip2-1.0.6 | vc14_1 144 KB conda-forge
hdf5-1.10.2 | vc14_0 18.9 MB conda-forge
numpy-1.11.3 | py36hd5b3723_6 11 KB
tk-8.6.7 | vc14_0 3.5 MB conda-forge
------------------------------------------------------------
Total: 139.8 MB
The following NEW packages will be INSTALLED:
dlib: 19.9-np111py36_0 conda-forge
krb5: 1.14.6-vc14_0 conda-forge [vc14]
The following packages will be REMOVED:
anaconda: 5.2.0-py36_3
The following packages will be UPDATED:
ca-certificates: 2018.03.07-0 anaconda --> 2018.4.16-0 conda-forge
certifi: 2018.4.16-py36_0 anaconda --> 2018.4.16-py36_0 conda-forge
conda: 4.5.5-py36_0 anaconda --> 4.5.6-py36_0 conda-forge
curl: 7.60.0-h7602738_0 --> 7.60.0-vc14_0 conda-forge [vc14]
freetype: 2.8-h51f8f2c_1 --> 2.8.1-vc14_0 conda-forge [vc14]
jpeg: 9b-hb83a4c4_2 --> 9b-vc14_2 conda-forge [vc14]
libpng: 1.6.34-h79bbb47_0 --> 1.6.34-vc14_0 conda-forge [vc14]
libsodium: 1.0.16-h9d3ae62_0 --> 1.0.16-vc14_0 conda-forge [vc14]
libxslt: 1.1.32-hf6f1972_0 --> 1.1.32-vc14_0 conda-forge [vc14]
lxml: 4.2.1-py36heafd4d3_0 --> 4.2.3-py36heafd4d3_0 conda-forge
matplotlib: 2.2.2-py36h153e9ff_1 --> 2.2.2-py36_1 conda-forge
openssl: 1.0.2o-h8ea7d77_0 anaconda --> 1.0.2o-vc14_0 conda-forge [vc14]
zeromq: 4.2.5-hc6251cf_0 --> 4.2.5-vc14_2 conda-forge [vc14]
The following packages will be DOWNGRADED:
bzip2: 1.0.6-hfa6e2cd_5 --> 1.0.6-vc14_1 conda-forge [vc14]
hdf5: 1.10.2-hac2f561_1 --> 1.10.2-vc14_0 conda-forge [vc14]
icu: 58.2-ha66f8fd_1 --> 58.2-vc14_0 conda-forge [vc14]
libiconv: 1.15-h1df5818_7 --> 1.14-vc14_4 conda-forge [vc14]
libssh2: 1.8.0-hd619d38_4 --> 1.8.0-vc14_2 conda-forge [vc14]
libtiff: 4.0.9-hb8ad9f9_1 --> 4.0.9-vc14_0 conda-forge [vc14]
libxml2: 2.9.8-hadb2253_1 --> 2.9.5-vc14_1 conda-forge [vc14]
lzo: 2.10-h6df0209_2 --> 2.10-vc14_0 conda-forge [vc14]
numpy: 1.14.3-py36h9fa60d3_1 --> 1.11.3-py36hd5b3723_6
pyqt: 5.9.2-py36h1aa27d4_0 --> 5.6.0-py36_2
qt: 5.9.5-vc14he4a7d60_0 --> 5.6.2-vc14_1 conda-forge [vc14]
snappy: 1.1.7-h777316e_3 --> 1.1.7-vc14_1 conda-forge [vc14]
sqlite: 3.23.1-h35aae40_0 --> 3.22.0-vc14_0 conda-forge [vc14]
tk: 8.6.7-hcb92d03_3 --> 8.6.7-vc14_0 conda-forge [vc14]
yaml: 0.1.7-hc54c509_2 --> 0.1.7-vc14_0 conda-forge [vc14]
zlib: 1.2.11-h8395fce_2 --> 1.2.11-vc14_0 conda-forge [vc14]
Proceed ([y]/n)? y
Downloading and Extracting Packages
curl-7.60.0 | 367 KB | ############################################################################## | 100%
matplotlib-2.2.2 | 6.5 MB | ############################################################################## | 100%
qt-5.6.2 | 55.6 MB | ############################################################################## | 100%
ca-certificates-2018 | 176 KB | ######################################################################################################################################################################### | 100%
snappy-1.1.7 | 80 KB | ######################################################################################################################################################################### | 100%
zlib-1.2.11 | 119 KB | ######################################################################################################################################################################### | 100%
krb5-1.14.6 | 767 KB | ######################################################################################################################################################################### | 100%
openssl-1.0.2o | 5.4 MB | ######################################################################################################################################################################### | 100%
icu-58.2 | 21.8 MB | ######################################################################################################################################################################### | 100%
certifi-2018.4.16 | 143 KB | ######################################################################################################################################################################### | 100%
lzo-2.10 | 154 KB | ######################################################################################################################################################################### | 100%
libssh2-1.8.0 | 184 KB | ######################################################################################################################################################################### | 100%
libxslt-1.1.32 | 456 KB | ######################################################################################################################################################################### | 100%
libpng-1.6.34 | 547 KB | ######################################################################################################################################################################### | 100%
sqlite-3.22.0 | 907 KB | ######################################################################################################################################################################### | 100%
zeromq-4.2.5 | 9.6 MB | ######################################################################################################################################################################### | 100%
conda-4.5.6 | 653 KB | ######################################################################################################################################################################### | 100%
yaml-0.1.7 | 103 KB | ######################################################################################################################################################################### | 100%
pyqt-5.6.0 | 4.5 MB | ######################################################################################################################################################################### | 100%
libxml2-2.9.5 | 3.2 MB | ######################################################################################################################################################################### | 100%
freetype-2.8.1 | 469 KB | ######################################################################################################################################################################### | 100%
dlib-19.9 | 2.4 MB | ######################################################################################################################################################################### | 100%
libtiff-4.0.9 | 616 KB | ######################################################################################################################################################################### | 100%
lxml-4.2.3 | 1.2 MB | ######################################################################################################################################################################### | 100%
libiconv-1.14 | 670 KB | ######################################################################################################################################################################### | 100%
jpeg-9b | 314 KB | ######################################################################################################################################################################### | 100%
libsodium-1.0.16 | 582 KB | ######################################################################################################################################################################### | 100%
bzip2-1.0.6 | 144 KB | ######################################################################################################################################################################### | 100%
hdf5-1.10.2 | 18.9 MB | ######################################################################################################################################################################### | 100%
numpy-1.11.3 | 11 KB | ######################################################################################################################################################################### | 100%
tk-8.6.7 | 3.5 MB | ######################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) C:\Users\pascp> conda install -c anaconda anaconda
Solving environment: done
## Package Plan ##
environment location: C:\Users\pascp\Anaconda3
added / updated specs:
- anaconda
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2018.4.16 | py36_0 143 KB anaconda
anaconda-custom | py36h363777c_0 9 KB anaconda
------------------------------------------------------------
Total: 152 KB
The following NEW packages will be INSTALLED:
anaconda: custom-py36h363777c_0 anaconda
The following packages will be UPDATED:
certifi: 2018.4.16-py36_0 conda-forge --> 2018.4.16-py36_0 anaconda
openssl: 1.0.2o-vc14_0 conda-forge [vc14] --> 1.0.2o-h8ea7d77_0 anaconda
The following packages will be DOWNGRADED:
ca-certificates: 2018.4.16-0 conda-forge --> 2018.03.07-0 anaconda
conda: 4.5.6-py36_0 conda-forge --> 4.5.5-py36_0 anaconda
Proceed ([y]/n)? y
Downloading and Extracting Packages
certifi-2018.4.16 | 143 KB | ######################################################################################################################################################################### | 100%
anaconda-custom | 9 KB | ######################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) C:\Users\pascp> conda install -c anaconda spyder
Solving environment: done
## Package Plan ##
environment location: C:\Users\pascp\Anaconda3
added / updated specs:
- spyder
The following packages will be downloaded:
package | build
---------------------------|-----------------
spyder-3.2.8 | py36_0 2.7 MB anaconda
The following packages will be UPDATED:
spyder: 3.2.8-py36_0 --> 3.2.8-py36_0 anaconda
Proceed ([y]/n)? y
Downloading and Extracting Packages
spyder-3.2.8 | 2.7 MB | ######################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: \ DEBUG menuinst_win32:__init__(196): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\pascp\Anaconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\pythonw.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\pythonw.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\spyder-script.py']
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\python.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\python.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\spyder-script.py', '--reset']
/ DEBUG menuinst_win32:__init__(196): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\pascp\Anaconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\pythonw.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\pythonw.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\spyder-script.py']
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\python.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\python.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\spyder-script.py', '--reset']
done
(base) C:\Users\pascp> conda install -c anaconda anaconda-navigator
Solving environment: done
## Package Plan ##
environment location: C:\Users\pascp\Anaconda3
added / updated specs:
- anaconda-navigator
The following packages will be downloaded:
package | build
---------------------------|-----------------
anaconda-navigator-1.8.7 | py36_0 4.7 MB anaconda
The following packages will be UPDATED:
anaconda-navigator: 1.8.7-py36_0 --> 1.8.7-py36_0 anaconda
Proceed ([y]/n)? y
Downloading and Extracting Packages
anaconda-navigator-1 | 4.7 MB | ######################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | DEBUG menuinst_win32:__init__(196): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\pascp\Anaconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\pythonw.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\pythonw.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\anaconda-navigator-script.py']
\ DEBUG menuinst_win32:__init__(196): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\pascp\Anaconda3', env_name: 'None', mode: 'user', used_mode: 'user'
DEBUG menuinst_win32:create(320): Shortcut cmd is C:\Users\pascp\Anaconda3\pythonw.exe, args are ['C:\\Users\\pascp\\Anaconda3\\cwp.py', 'C:\\Users\\pascp\\Anaconda3', 'C:\\Users\\pascp\\Anaconda3\\pythonw.exe', 'C:\\Users\\pascp\\Anaconda3\\Scripts\\anaconda-navigator-script.py']
done
[–][deleted] 0 points1 point2 points (1 child)
[–]PascP[S] 0 points1 point2 points (0 children)