pip fails to install. Results in "command errored out with exit status 1"
Question:
thanks for the help with this question I appreciate you all. Pip will not install anything for me aside from generic boring python packages. Is there a way to manually install packages without going through this insufferable process?
pip3 install scrublet
Requirement already satisfied: scrublet in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesscrublet-0.2.1-py3.9.egg (0.2.1)
Requirement already satisfied: cython in c:usersdanieappdatalocalprogramspythonpython39libsite-packagescython-3.0a6-py3.9.egg (from scrublet) (3.0a6)
Requirement already satisfied: numpy in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (1.20.1)
Requirement already satisfied: scipy in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (1.6.1)
Requirement already satisfied: scikit-learn in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesscikit_learn-0.24.1-py3.9-win-amd64.egg (from scrublet) (0.24.1)
Requirement already satisfied: scikit-image in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (0.18.1)
Requirement already satisfied: matplotlib in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (3.3.4)
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Requirement already satisfied: numba in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesnumba-0.53.0rc2-py3.9-win-amd64.egg (from scrublet) (0.53.0rc2)
Requirement already satisfied: pandas in c:usersdanieappdatalocalprogramspythonpython39libsite-packagespandas-1.2.2-py3.9-win-amd64.egg (from scrublet) (1.2.2)
Requirement already satisfied: umap-learn in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesumap_learn-0.5.1-py3.9.egg (from scrublet) (0.5.1)
Requirement already satisfied: pillow>=6.2.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (8.1.0)
Requirement already satisfied: cycler>=0.10 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (2.8.1)
Requirement already satisfied: six in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from cycler>=0.10->matplotlib->scrublet) (1.15.0)
Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from numba->scrublet) (0.36.0rc2)
Requirement already satisfied: setuptools in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from numba->scrublet) (54.0.0)
Requirement already satisfied: pytz>=2017.3 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from pandas->scrublet) (2021.1)
Requirement already satisfied: networkx>=2.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2.5)
Requirement already satisfied: tifffile>=2019.7.26 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2021.2.26)
Requirement already satisfied: imageio>=2.3.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2.9.0)
Requirement already satisfied: PyWavelets>=1.1.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (1.1.1)
Requirement already satisfied: decorator>=4.3.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from networkx>=2.0->scikit-image->scrublet) (4.4.2)
Requirement already satisfied: joblib>=0.11 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-learn->scrublet) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-learn->scrublet) (2.1.0)
Requirement already satisfied: pynndescent>=0.5 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from umap-learn->scrublet) (0.5.2)
Using legacy 'setup.py install' for annoy, since package 'wheel' is not installed.
Installing collected packages: annoy
Running setup.py install for annoy ... error
ERROR: Command errored out with exit status 1:
command: 'c:usersdanieappdatalocalprogramspythonpython39python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"'; __file__='"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:WindowsTemppip-record-x7azmtt5install-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersdanieappdatalocalprogramspythonpython39Includeannoy'
cwd: C:WindowsTemppip-install-omk6ze2eannoy_3047d582a1534335aeb9b39626f0c183
Complete output (11 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9annoy
copying annoy__init__.py -> buildlib.win-amd64-3.9annoy
running build_ext
building 'annoy.annoylib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersdanieappdatalocalprogramspythonpython39python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"'; __file__='"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:WindowsTemppip-record-x7azmtt5install-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersdanieappdatalocalprogramspythonpython39Includeannoy' Check the logs for full command output.
Answers:
Judging by the packages you are installing, I would recommend trying Anaconda. It will install all of your data science related packages for you and make sure there are NO version mismatches between packages.
In my experience, I’ve spend dozens of hours fighting with screens like the one above. Then, I used the Anaconda distribution and everything "just worked".
thanks for the help with this question I appreciate you all. Pip will not install anything for me aside from generic boring python packages. Is there a way to manually install packages without going through this insufferable process?
pip3 install scrublet
Requirement already satisfied: scrublet in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesscrublet-0.2.1-py3.9.egg (0.2.1)
Requirement already satisfied: cython in c:usersdanieappdatalocalprogramspythonpython39libsite-packagescython-3.0a6-py3.9.egg (from scrublet) (3.0a6)
Requirement already satisfied: numpy in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (1.20.1)
Requirement already satisfied: scipy in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (1.6.1)
Requirement already satisfied: scikit-learn in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesscikit_learn-0.24.1-py3.9-win-amd64.egg (from scrublet) (0.24.1)
Requirement already satisfied: scikit-image in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (0.18.1)
Requirement already satisfied: matplotlib in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scrublet) (3.3.4)
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Requirement already satisfied: numba in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesnumba-0.53.0rc2-py3.9-win-amd64.egg (from scrublet) (0.53.0rc2)
Requirement already satisfied: pandas in c:usersdanieappdatalocalprogramspythonpython39libsite-packagespandas-1.2.2-py3.9-win-amd64.egg (from scrublet) (1.2.2)
Requirement already satisfied: umap-learn in c:usersdanieappdatalocalprogramspythonpython39libsite-packagesumap_learn-0.5.1-py3.9.egg (from scrublet) (0.5.1)
Requirement already satisfied: pillow>=6.2.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (8.1.0)
Requirement already satisfied: cycler>=0.10 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (2.4.7)
Requirement already satisfied: python-dateutil>=2.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from matplotlib->scrublet) (2.8.1)
Requirement already satisfied: six in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from cycler>=0.10->matplotlib->scrublet) (1.15.0)
Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from numba->scrublet) (0.36.0rc2)
Requirement already satisfied: setuptools in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from numba->scrublet) (54.0.0)
Requirement already satisfied: pytz>=2017.3 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from pandas->scrublet) (2021.1)
Requirement already satisfied: networkx>=2.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2.5)
Requirement already satisfied: tifffile>=2019.7.26 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2021.2.26)
Requirement already satisfied: imageio>=2.3.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (2.9.0)
Requirement already satisfied: PyWavelets>=1.1.1 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-image->scrublet) (1.1.1)
Requirement already satisfied: decorator>=4.3.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from networkx>=2.0->scikit-image->scrublet) (4.4.2)
Requirement already satisfied: joblib>=0.11 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-learn->scrublet) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from scikit-learn->scrublet) (2.1.0)
Requirement already satisfied: pynndescent>=0.5 in c:usersdanieappdatalocalprogramspythonpython39libsite-packages (from umap-learn->scrublet) (0.5.2)
Using legacy 'setup.py install' for annoy, since package 'wheel' is not installed.
Installing collected packages: annoy
Running setup.py install for annoy ... error
ERROR: Command errored out with exit status 1:
command: 'c:usersdanieappdatalocalprogramspythonpython39python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"'; __file__='"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:WindowsTemppip-record-x7azmtt5install-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersdanieappdatalocalprogramspythonpython39Includeannoy'
cwd: C:WindowsTemppip-install-omk6ze2eannoy_3047d582a1534335aeb9b39626f0c183
Complete output (11 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9annoy
copying annoy__init__.py -> buildlib.win-amd64-3.9annoy
running build_ext
building 'annoy.annoylib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersdanieappdatalocalprogramspythonpython39python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"'; __file__='"'"'C:\Windows\Temp\pip-install-omk6ze2e\annoy_3047d582a1534335aeb9b39626f0c183\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:WindowsTemppip-record-x7azmtt5install-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersdanieappdatalocalprogramspythonpython39Includeannoy' Check the logs for full command output.
Judging by the packages you are installing, I would recommend trying Anaconda. It will install all of your data science related packages for you and make sure there are NO version mismatches between packages.
In my experience, I’ve spend dozens of hours fighting with screens like the one above. Then, I used the Anaconda distribution and everything "just worked".