How to install src-0.0.7 package? - python

I am building a environment for running code, the code "import src" which is not in colab, or my PC. I saw the PyPl page, it says I should run 'pip install src', but I still cannot make it.
(base) oblic#oblic-PC:~$ pip install src
Collecting src
Using cached src-0.0.7.zip (6.3 kB)
Building wheels for collected packages: src
Building wheel for src (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-m62_ocqn
cwd: /tmp/pip-install-qffzaygw/src/
Complete output (41 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/src
copying src/__init__.py -> build/lib/src
running egg_info
writing src.egg-info/PKG-INFO
writing dependency_links to src.egg-info/dependency_links.txt
writing entry points to src.egg-info/entry_points.txt
writing requirements to src.egg-info/requires.txt
writing top-level names to src.egg-info/top_level.txt
reading manifest file 'src.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-qffzaygw/src/setup.py", line 96, in <module>
'install_lib': InstallCommand,
File "/home/oblic/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/oblic/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/oblic/anaconda3/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 226, in run
reinit_subcommands=True)
File "/home/oblic/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 198, in reinitialize_command
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
File "/home/oblic/anaconda3/lib/python3.7/distutils/cmd.py", line 306, in reinitialize_command
reinit_subcommands)
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 950, in reinitialize_command
for sub in command.get_sub_commands():
File "/home/oblic/anaconda3/lib/python3.7/distutils/cmd.py", line 324, in get_sub_commands
if method is None or method(self):
File "/home/oblic/anaconda3/lib/python3.7/distutils/command/install.py", line 631, in has_lib
return (self.distribution.has_pure_modules() or
AttributeError: 'NoneType' object has no attribute 'has_pure_modules'
----------------------------------------
ERROR: Failed building wheel for src
Running setup.py clean for src
Failed to build src
Installing collected packages: src
Running setup.py install for src ... error
ERROR: Command errored out with exit status 1:
command: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-4y4re6aq/install-record.txt --single-version-externally-managed --compile --install-headers /home/oblic/anaconda3/include/python3.7m/src
cwd: /tmp/pip-install-qffzaygw/src/
Complete output (2 lines):
running install
You've probably made a mistake here and are trying to install from a 'src' directory which doesn't exist.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-4y4re6aq/install-record.txt --single-version-externally-managed --compile --install-headers /home/oblic/anaconda3/include/python3.7m/src Check the logs for full command output.
Above is the output when I tried to setup the package 'src'.
I don't know if I can post this or not.

Thank you, all of you. You really helped me to figure out what the question is. Now let me make this clear, and hopefully this case could help others.
The codes I want to run actually are contained in a dictionary called 'src'.
and the programmer wrote their code, for example main.py, with following line:
'''
import src.utils as utils
'''
I made a mistake that I ran the code in the ~/main/src dictionary, so python returned an error "no src module". I was then stupid to find src package.
Actually, one easy way to run the codes is copying all the .py files to the upper level dictionary, in my case ~/main/, and run main.py in ~/main/, because ~/main/src/ contains utils.py, then the code will run smoothly, and no module missing at all.

Related

unable to install src package [duplicate]

I am building a environment for running code, the code "import src" which is not in colab, or my PC. I saw the PyPl page, it says I should run 'pip install src', but I still cannot make it.
(base) oblic#oblic-PC:~$ pip install src
Collecting src
Using cached src-0.0.7.zip (6.3 kB)
Building wheels for collected packages: src
Building wheel for src (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-m62_ocqn
cwd: /tmp/pip-install-qffzaygw/src/
Complete output (41 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/src
copying src/__init__.py -> build/lib/src
running egg_info
writing src.egg-info/PKG-INFO
writing dependency_links to src.egg-info/dependency_links.txt
writing entry points to src.egg-info/entry_points.txt
writing requirements to src.egg-info/requires.txt
writing top-level names to src.egg-info/top_level.txt
reading manifest file 'src.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-qffzaygw/src/setup.py", line 96, in <module>
'install_lib': InstallCommand,
File "/home/oblic/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/oblic/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/oblic/anaconda3/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 226, in run
reinit_subcommands=True)
File "/home/oblic/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 198, in reinitialize_command
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
File "/home/oblic/anaconda3/lib/python3.7/distutils/cmd.py", line 306, in reinitialize_command
reinit_subcommands)
File "/home/oblic/anaconda3/lib/python3.7/distutils/dist.py", line 950, in reinitialize_command
for sub in command.get_sub_commands():
File "/home/oblic/anaconda3/lib/python3.7/distutils/cmd.py", line 324, in get_sub_commands
if method is None or method(self):
File "/home/oblic/anaconda3/lib/python3.7/distutils/command/install.py", line 631, in has_lib
return (self.distribution.has_pure_modules() or
AttributeError: 'NoneType' object has no attribute 'has_pure_modules'
----------------------------------------
ERROR: Failed building wheel for src
Running setup.py clean for src
Failed to build src
Installing collected packages: src
Running setup.py install for src ... error
ERROR: Command errored out with exit status 1:
command: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-4y4re6aq/install-record.txt --single-version-externally-managed --compile --install-headers /home/oblic/anaconda3/include/python3.7m/src
cwd: /tmp/pip-install-qffzaygw/src/
Complete output (2 lines):
running install
You've probably made a mistake here and are trying to install from a 'src' directory which doesn't exist.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/oblic/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qffzaygw/src/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qffzaygw/src/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-4y4re6aq/install-record.txt --single-version-externally-managed --compile --install-headers /home/oblic/anaconda3/include/python3.7m/src Check the logs for full command output.
Above is the output when I tried to setup the package 'src'.
I don't know if I can post this or not.
Thank you, all of you. You really helped me to figure out what the question is. Now let me make this clear, and hopefully this case could help others.
The codes I want to run actually are contained in a dictionary called 'src'.
and the programmer wrote their code, for example main.py, with following line:
'''
import src.utils as utils
'''
I made a mistake that I ran the code in the ~/main/src dictionary, so python returned an error "no src module". I was then stupid to find src package.
Actually, one easy way to run the codes is copying all the .py files to the upper level dictionary, in my case ~/main/, and run main.py in ~/main/, because ~/main/src/ contains utils.py, then the code will run smoothly, and no module missing at all.

Cant download pygame

This is the error I get when I try to download pygame.
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-hkauem4n\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-hkauem4n\\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\user\AppData\Local\Temp\pip-pip-egg-info-k1_a0_dp'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-hkauem4n\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\user\AppData\Local\Temp\pip-install-hkauem4n\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\user\AppData\Local\Temp\pip-install-hkauem4n\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\user\AppData\Local\Temp\pip-install-hkauem4n\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\user\AppData\Local\Temp\pip-install-hkauem4n\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.
Can't find an answer anywhere to this problem, can someone help me, please?
I was having the same issue a while ago. You have to download visual studio c++ build tools to download pygame.
https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
Go there and scroll down until you see Build Tools for Visual Studio 2019 and download that. Then run "pip install pygame" and it should work.

Can't install nim inside of env

I'm attempting to install nim into a folder where I'm experimenting using virtual environment, but I can't seem to install nim using pip install nim. Any ideas why, I've included the error message. Thank you! :)
Collecting nim
Using cached nim-0.1.0.tar.gz (11 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/setup.py'"'"'; __file__='"'"'/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/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/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-pip-egg-info-lhsvapoi
cwd: /private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/setup.py", line 171, in <module>
pkg_data = _package_data(__file__.replace('setup.py', '__init__.py'))
File "/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/setup.py", line 150, in _package_data
data = literal_eval(u''.join(lines))
File "/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/setup.py", line 122, in literal_eval
return _convert(node_or_string)
File "/private/var/folders/jq/_5zq1xh91hgcj49vb9lh689h0000gn/T/pip-install-c6r0gd5_/nim/setup.py", line 69, in _convert
if isinstance(node, (Str, Bytes)):
NameError: name 'Str' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I tried to install wxpython but it did not work

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.

Error in installing Turi Create on Windows

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.

Categories

Resources