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.
Related
Cannot install PROJ
>>pip install git+https://github.com/OSGeo/PROJ.git
Collecting git+https://github.com/OSGeo/PROJ.git
Cloning https://github.com/OSGeo/PROJ.git to c:\users\lenovo\appdata\local\temp\pip-req-build-jwr6msmg
ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\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\lenovo\AppData\Local\Temp\pip-pip-egg-info-w2azftsy'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-jwr6msmg\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-jwr6msmg\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried installing it manually using the source file, But it is also giving the following error
>>> pip install proj-7.1.1.tar.gz
Processing e:\wihg\15-09-2020\surfacewave tomography\iris_data\test\proj-7.1.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\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\lenovo\AppData\Local\Temp\pip-pip-egg-info-2t2y4p78'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-req-build-3y5iufx3\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-req-build-3y5iufx3\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to solve this error? (Have to install it in Non-conda environment)
PROJ is a C library, not a Python package, so you cannot use pip to install it.
If you just want to work with PROJ from Python, you can use PyPROJ and install it with pip install pyproj. On MacOS, Linux, and Windows this will give you pre-built wheels that already include PROJ.
If you're trying to install it for CartoPy (based on your tags) you'll need to install PROJ separately following their install instructions.
I'm trying to install tensorflow-recommenders using pip but I keep getting this error.
I made sure I had Tensorflow 2.x installed and upgraded, but I keep getting the same error after running this command:
pip install tensorflow-recommenders
Error:
command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"'; __file__='"'"'/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-pip-egg-info-n6vhs1
cwd: /private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/wy/j6rljpj50y326hn2s45p1svc0000gn/T/pip-install-94eA0b/tensorflow-recommenders/setup.py", line 17, in <module>
import pathlib
ImportError: No module named pathlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried everything I could, so if anyone has any suggestions it'd be super helpful!
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 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
so im trying to do a pip3 install flask-swagger-ui but im getting the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-swagger-ui
Using cached flask-swagger-ui-3.25.0.tar.gz (521 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-n64v6bxi/flask-swagger-ui/pip-egg-info
cwd: /tmp/pip-install-n64v6bxi/flask-swagger-ui/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
please help