I am trying to download ssh2-python, but continue to get this error. I saw a previous post said to download cmake to fix this issue, but unfortunately it did not help me. Any recommendations on what to do seeing the error below? Thank you!
pip3 install ssh2-python
Collecting ssh2-python
Using cached ssh2-python-0.18.0.post1.tar.gz (1.1 MB)
Installing collected packages: ssh2-python
Running setup.py install for ssh2-python ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"'; __file__='"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-record-51uifsty/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/ssh2-python
cwd: /private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/
Complete output (10 lines):
/bin/sh: cmake: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py", line 36, in <module>
build_ssh2()
File "/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/_setup_libssh2.py", line 21, in build_ssh2
check_call('cmake ../libssh2 -DBUILD_SHARED_LIBS=ON \
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'cmake ../libssh2 -DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON -DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL' returned non-zero exit status 127.
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"'; __file__='"'"'/private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-install-3kzvpatz/ssh2-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fv/m4glr2xj7fzd20dv5pk9bs1c0000gn/T/pip-record-51uifsty/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/ssh2-python Check the logs for full command output.
You need cmake to compile the lib. If you have homebrew installed, use the following command to install the cmake. Then open a new terminal and try to install the ssh2-python.
brew install cmake
Related
I've been trying to install librosa packages via pip. It keeps failing with these errors.
Other packages such as pyaudio, PyQt5 give a similar error. Why are these packages giving errors? Any ideas?
ERROR: Command errored out with exit status 1:
command: /Users/choijaeik/.pyenv/versions/3.8.6/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/setup.py'"'"'; __file__='"'"'/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-record-1mj1e170/install-record.txt --single-version-externally-managed --compile --install-headers /Users/choijaeik/.pyenv/versions/3.8.6/include/python3.8/llvmlite
cwd: /private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/
Complete output (14 lines):
running install
running build
got version from file /private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/llvmlite/_version.py {'version': '0.38.0', 'full': 'f0365b91ce1e1f74c68785c6d0067f32f89857d9'}
running build_ext
/Users/choijaeik/.pyenv/versions/3.8.6/bin/python3.8 /private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/ffi/build.py", line 220, in <module>
main()
File "/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/ffi/build.py", line 214, in main
main_posix('osx', '.dylib')
File "/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/ffi/build.py", line 134, in main_posix
raise RuntimeError(msg) from None
RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.
error: command '/Users/choijaeik/.pyenv/versions/3.8.6/bin/python3.8' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/choijaeik/.pyenv/versions/3.8.6/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/setup.py'"'"'; __file__='"'"'/private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-install-bpcub3_y/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/1g/8vqsn9yd48xf1y82n0g3fmdw0000gn/T/pip-record-1mj1e170/install-record.txt --single-version-externally-managed --compile --install-headers /Users/choijaeik/.pyenv/versions/3.8.6/include/python3.8/llvmlite Check the logs for full command output.
When i try and install dlib using pip (pip install dlib) it says this:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\curry\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\curry\\AppData\\Local\\Temp\\pip-install-qhiyfkci\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\curry\\AppData\\Local\\Temp\\pip-install-qhiyfkci\\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\curry\AppData\Local\Temp\pip-record-ckv17yp4\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\curry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\dlib'
cwd: C:\Users\curry\AppData\Local\Temp\pip-install-qhiyfkci\dlib\
Complete output (8 lines):
running install
running build
running build_py
package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\curry\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\curry\\AppData\\Local\\Temp\\pip-install-qhiyfkci\\dlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\curry\\AppData\\Local\\Temp\\pip-install-qhiyfkci\\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\curry\AppData\Local\Temp\pip-record-ckv17yp4\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\curry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Include\dlib' Check the logs for full command output.
I have tried to do pip install cmake and then pip install dlib but it did not work
Also for clarification i have installed Visual Studio community and use python 1.9. I use Windows 10
Thank you for Helping
So I tried following a tutorial from answers to thos question How to properly install wxPython?
Install python 3xxx in your system opting (Add 3xxx to your path).
I had it installed by now
open python CLI to see whether python is working or not.>>then open command prompt (CMD).
What is python CLI? How do I check if it works or not?
type PIP to see whether pip is installed or not.
It was installed, version 20.1.1
enter command : pip install wheel
It was successfully installed
enter command : pip install pygame
After downloading the package it gave me this:
command: 'e:\prg\inkscape\bin\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-hn5zcy3g\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-hn5zcy3g\\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\irbis\AppData\Local\Temp\pip-pip-egg-info-o4vuki0n'
cwd: C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\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 "<string>", line 1, in <module>
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\irbis\AppData\Local\Temp\pip-install-hn5zcy3g\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.```
>To install wxpython enter command : pip install -U wxPython
This one gave me an error as well:
```Running setup.py install for wxPython ... error
ERROR: Command errored out with exit status 1:
command: 'e:\prg\inkscape\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\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\irbis\AppData\Local\Temp\pip-record-i_otwe8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\prg\inkscape\include\python3.8\wxPython'
cwd: C:\Users\irbis\AppData\Local\Temp\pip-install-i_c51shd\wxPython\
Complete output (25 lines):
running install
running build
Will build using: "E:\prg\inkscape\bin\python.exe"
3.8.2 (default, Apr 9 2020, 13:17:39) [GCC 9.3.0 64 bit (AMD64)]
Python's architecture is 64bit
cfg.VERSION: 4.1.0
Running command: build
Running command: build_wx
Command '"E:\prg\inkscape\bin\python.exe" -c "import setuptools, distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "E:\prg\inkscape\lib\python3.8\distutils\msvc9compiler.py", line 330, in __init__
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
Finished command: build_wx (0.474s)
Finished command: build (0.474s)
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
--skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.
"e:\prg\inkscape\bin\python.exe" -u build.py build
Command '"e:\prg\inkscape\bin\python.exe" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'e:\prg\inkscape\bin\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\setup.py'"'"'; __file__='"'"'C:\\Users\\irbis\\AppData\\Local\\Temp\\pip-install-i_c51shd\\wxPython\\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\irbis\AppData\Local\Temp\pip-record-i_otwe8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'e:\prg\inkscape\include\python3.8\wxPython' Check the logs for full command output.```
It looks like you are trying to install wxPython to the Python that is included with Inkscape. This probably won't work.
Download and install Python 3 from either www.python.org or the Microfot Store. Then try installing wxPython using that Python, NOT the one that came with Inkscape.
I am using Windows 10 and run Jupyter Notebook on Anaconda. At first I wanted to install Turi Create on Anaconda but failed to do so. Then I started installing Turi Create through WSL using Ubuntu. But after running the command $pip install turicreate I am getting the following error:
ERROR: Failed building wheel for llvmlite
My python version is 3.6.9
The full error traceback is given below
ERROR: Command errored out with exit status 1: command:
/home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/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 /tmp/pip-wheel-VYksx0
cwd: /tmp/pip-install-D6ZY7E/llvmlite/ Complete output (15 lines): running bdist_wheel /home/rishad/venv/bin/python
/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py LLVM version... 6.0.0
Traceback (most recent call last):
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 168, in
main()
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 158, in main
main_posix('linux', '.so')
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 120, in main_posix
raise RuntimeError(msg) RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got u'6.0.0'. Be sure to set
LLVM_CONFIG to the right executable path. Read the documentation at
http://llvmlite.pydata.org/ for more information about building
llvmlite.
error: command '/home/rishad/venv/bin/python' failed with exit
status 1 ---------------------------------------- ERROR: Failed
building wheel for llvmlite
And then the next error
Running setup.py install for llvmlite ... error
ERROR: Command errored out with exit status 1:
command: /home/rishad/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /tmp/pip-record-Tv5u1Z/install-record.txt
--single-version-externally-managed --compile --install-headers /home/rishad/venv/include/site/python2.7/llvmlite
cwd: /tmp/pip-install-D6ZY7E/llvmlite/
Complete output (18 lines):
running install
running build
got version from file /tmp/pip-install-D6ZY7E/llvmlite/llvmlite/_version.py {'version':
'0.32.0', 'full': '26059d238f4ba23dff74703dd27168591d889edd'}
running build_ext
/home/rishad/venv/bin/python /tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py
LLVM version... 6.0.0
Traceback (most recent call last):
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 168, in <module>
main()
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 158, in main
main_posix('linux', '.so')
File "/tmp/pip-install-D6ZY7E/llvmlite/ffi/build.py", line 120, in main_posix
raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got u'6.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
error: command '/home/rishad/venv/bin/python' failed with exit status 1
---------------------------------------- ERROR: Command errored out with exit status 1: /home/rishad/venv/bin/python -u -c 'import
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';
file='"'"'/tmp/pip-install-D6ZY7E/llvmlite/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /tmp/pip-record-Tv5u1Z/install-record.txt
--single-version-externally-managed --compile --install-headers /home/rishad/venv/include/site/python2.7/llvmlite Check the logs for
full command output.
When encountering this problem, I had tried to download the 'main' module from both the command prompt and the PowerShell. However, the same error result was shown. How can I solve this problem? This is the error message:
Collecting main
Using cached https://files.pythonhosted.org/packages/1c/f4/445fbd86d9ebd133a03a263482f72dd539ccc90a0c29693222903e5e145e/main-0.1.tar.gz
Installing collected packages: main
Running setup.py install for main ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Python 3.8.1\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"'; __file__='"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\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\asuit\AppData\Local\Temp\pip-record-oc5gc9jc\install-record.txt' --single-version-externally-managed --compile --user --prefix=
cwd: C:\Users\asuit\AppData\Local\Temp\pip-install-9tqrshss\main\
Complete output (6 lines):
running install
running build
running build_scripts
creating build
creating build\scripts-3.8
error: file 'C:\Users\asuit\AppData\Local\Temp\pip-install-9tqrshss\main\main' does not exist
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python 3.8.1\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"'; __file__='"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\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\asuit\AppData\Local\Temp\pip-record-oc5gc9jc\install-record.txt' --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
The pip commands that I used are python -m pip install --user main for Command Prompt and pip install main for Windows PowerShell