C:\Users\carme>conda list
# packages in environment at C:\Users\carme\Anaconda2:
#
_license 1.1 py27_1
alabaster 0.7.10 py27_0
anaconda 4.4.0 np112py27_0
anaconda-client 1.6.3 py27_0
anaconda-navigator 1.6.2 py27_0
anaconda-project 0.6.0 py27_0
asn1crypto 0.22.0 py27_0
astroid 1.4.9 py27_0
astropy 1.3.2 np112py27_0
babel 2.4.0 py27_0
backports 1.0 py27_0
backports_abc 0.5 py27_0
beautifulsoup4 4.6.0 py27_0
bitarray 0.8.1 py27_1
blaze 0.10.1 py27_0
bleach 1.5.0 py27_0
bokeh 0.12.5 py27_1
boto 2.46.1 py27_0
bottleneck 1.2.1 np112py27_0
bzip2 1.0.6 vc9_3 [vc9]
cdecimal 2.3 py27_2
cffi 1.10.0 py27_0
chardet 3.0.3 py27_0
click 6.7 py27_0
cloudpickle 0.2.2 py27_0
clyent 1.2.2 py27_0
colorama 0.3.9 py27_0
comtypes 1.1.2 py27_0
conda 4.3.21 py27_0
conda-env 2.6.0 0
configparser 3.5.0 py27_0
console_shortcut 0.1.1 py27_1
contextlib2 0.5.5 py27_0
cryptography 1.8.1 py27_0
curl 7.52.1 vc9_0 [vc9]
cycler 0.10.0 py27_0
cython 0.25.2 py27_0
cytoolz 0.8.2 py27_0
dask 0.14.3 py27_1
datashape 0.5.4 py27_0
decorator 4.0.11 py27_0
distributed 1.16.3 py27_0
docutils 0.13.1 py27_0
entrypoints 0.2.2 py27_1
enum34 1.1.6 py27_0
et_xmlfile 1.0.1 py27_0
fastcache 1.0.2 py27_1
flask 0.12.2 py27_0
flask-cors 3.0.2 py27_0
freetype 2.5.5 vc9_2 [vc9]
funcsigs 1.0.2 py27_0
functools32 3.2.3.2 py27_0
futures 3.1.1 py27_0
get_terminal_size 1.0.0 py27_0
gevent 1.2.1 py27_0
greenlet 0.4.12 py27_0
grin 1.2.1 py27_3
h5py 2.7.0 np112py27_0
hdf5 1.8.15.1 vc9_4 [vc9]
heapdict 1.0.0 py27_1
html5lib 0.999 py27_0
icu 57.1 vc9_0 [vc9]
idna 2.5 py27_0
imagesize 0.7.1 py27_0
ipaddress 1.0.18 py27_0
ipykernel 4.6.1 py27_0
ipython 5.3.0 py27_0
ipython_genutils 0.2.0 py27_0
ipywidgets 6.0.0 py27_0
isort 4.2.5 py27_0
itsdangerous 0.24 py27_0
jdcal 1.3 py27_0
jedi 0.10.2 py27_2
jinja2 2.9.6 py27_0
jpeg 9b vc9_0 [vc9]
jsonschema 2.6.0 py27_0
jupyter 1.0.0 py27_3
jupyter_client 5.0.1 py27_0
jupyter_console 5.1.0 py27_0
jupyter_core 4.3.0 py27_0
lazy-object-proxy 1.2.2 py27_0
libpng 1.6.27 vc9_0 [vc9]
libtiff 4.0.6 vc9_3 [vc9]
llvmlite 0.18.0 py27_0
locket 0.2.0 py27_1
lxml 3.7.3 py27_0
markupsafe 0.23 py27_2
matplotlib 2.0.2 np112py27_0
menuinst 1.4.7 py27_0
mistune 0.7.4 py27_0
mkl 2017.0.1 0
mkl-service 1.1.2 py27_3
mpmath 0.19 py27_1
msgpack-python 0.4.8 py27_0
multipledispatch 0.4.9 py27_0
navigator-updater 0.1.0 py27_0
nbconvert 5.1.1 py27_0
nbformat 4.3.0 py27_0
networkx 1.11 py27_0
nltk 3.2.3 py27_0
nose 1.3.7 py27_1
notebook 5.0.0 py27_0
numba 0.33.0 np112py27_0
numexpr 2.6.2 np112py27_0
numpy 1.12.1 py27_0
numpydoc 0.6.0 py27_0
odo 0.5.0 py27_1
olefile 0.44 py27_0
openpyxl 2.4.7 py27_0
openssl 1.0.2l vc9_0 [vc9]
packaging 16.8 py27_0
pandas 0.20.1 np112py27_0
pandocfilters 1.4.1 py27_0
partd 0.3.8 py27_0
path.py 10.3.1 py27_0
pathlib2 2.2.1 py27_0
patsy 0.4.1 py27_0
pep8 1.7.0 py27_0
pickleshare 0.7.4 py27_0
pillow 4.1.1 py27_0
pip 9.0.1 py27_1
ply 3.10 py27_0
prompt_toolkit 1.0.14 py27_0
psutil 5.2.2 py27_0
py 1.4.33 py27_0
pycosat 0.6.2 py27_0
pycparser 2.17 py27_0
pycrypto 2.6.1 py27_6
pycurl 7.43.0 py27_2
pyflakes 1.5.0 py27_0
pygments 2.2.0 py27_0
pylint 1.6.4 py27_1
pyodbc 4.0.16 py27_0
pyopenssl 17.0.0 py27_0
pyparsing 2.1.4 py27_0
pyqt 5.6.0 py27_2
pytables 3.2.2 np112py27_4
pytest 3.0.7 py27_0
python 2.7.13 1
python-dateutil 2.6.0 py27_0
pytz 2017.2 py27_0
pywavelets 0.5.2 np112py27_0
pywin32 220 py27_2
pyyaml 3.12 py27_0
pyzmq 16.0.2 py27_0
qt 5.6.2 vc9_4 [vc9]
qtawesome 0.4.4 py27_0
qtconsole 4.3.0 py27_0
qtpy 1.2.1 py27_0
requests 2.14.2 py27_0
rope 0.9.4 py27_1
ruamel_yaml 0.11.14 py27_1
scandir 1.5 py27_0
scikit-image 0.13.0 np112py27_0
scikit-learn 0.18.1 np112py27_1
scipy 0.19.0 np112py27_0
seaborn 0.7.1 py27_0
setuptools 27.2.0 py27_1
simplegeneric 0.8.1 py27_1
singledispatch 3.4.0.3 py27_0
sip 4.18 py27_0
six 1.10.0 py27_0
snowballstemmer 1.2.1 py27_0
sortedcollections 0.5.3 py27_0
sortedcontainers 1.5.7 py27_0
sphinx 1.5.6 py27_0
spyder 3.1.4 py27_0
sqlalchemy 1.1.9 py27_0
ssl_match_hostname 3.4.0.2 py27_1
statsmodels 0.8.0 np112py27_0
subprocess32 3.2.7 py27_0
sympy 1.0 py27_0
tblib 1.3.2 py27_0
testpath 0.3 py27_0
tk 8.5.18 vc9_0 [vc9]
toolz 0.8.2 py27_0
tornado 4.5.1 py27_0
traitlets 4.3.2 py27_0
unicodecsv 0.14.1 py27_0
vs2008_runtime 9.00.30729.5054 0
vs2015_runtime 14.0.25123 0
wcwidth 0.1.7 py27_0
werkzeug 0.12.2 py27_0
wheel 0.29.0 py27_0
widgetsnbextension 2.0.0 py27_0
win_unicode_console 0.5 py27_0
wrapt 1.10.10 py27_0
xlrd 1.0.0 py27_0
xlsxwriter 0.9.6 py27_0
xlwings 0.10.4 py27_0
xlwt 1.2.0 py27_0
zict 0.1.2 py27_0
zlib 1.2.8 vc9_3 [vc9]
conda update llvmlite
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\Users\carme\Anaconda2:
The following packages will be UPDATED:
anaconda: 4.4.0-np112py27_0 --> custom-py27_0
conda: 4.3.21-py27_0 --> 4.3.23-py27_0
llvmlite: 0.18.0-py27_0 --> 0.19.0-py27_0
numba: 0.33.0-np112py27_0 --> 0.34.0-np112py27_0
Proceed ([y]/n)?
anaconda-custo 100% |###############################| Time: 0:00:00 174.48 kB/s
llvmlite-0.19. 100% |###############################| Time: 0:00:07 813.42 kB/s
numba-0.34.0-n 100% |###############################| Time: 0:00:02 756.85 kB/s
conda-4.3.23-p 100% |###############################| Time: 0:00:00 798.19 kB/s
INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\carme\Anaconda2', env_name: 'None', mode: 'None', used_mode: 'user'
INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Users\carme\Anaconda2', env_name: 'None', mode: 'None', used_mode: 'user'
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 21 23:18:50 2014
@author: Carmelo
"""
from math import sqrt
import time
# from numba import jit, int64, double
from numba import jit
i = 0
num1 = 0.0
print (num1)
print (time.asctime(time.localtime(time.time())))
# jit decorator tells Numba to compile this function.
# The argument types will be inferred by Numba when function is called.
@jit
# @jit(double(int64))
def sommaradici(m):
i = 0
num = 0.0
for i in range(0, m):
num += sqrt(i)
return num
print ('SommaRadici', (sommaradici(100000001)))
print (time.asctime(time.localtime(time.time())))
And I get this error
Traceback (most recent call last):
File "C:\Mega\Programmazione\prova\prova.py", line 12, in <module>
from numba import jit
File "C:\Users\carme\Anaconda2\lib\site-packages\numba\__init__.py", line 106, in <module>
_ensure_llvm()
File "C:\Users\carme\Anaconda2\lib\site-packages\numba\__init__.py", line 73, in _ensure_llvm
raise ImportError(msg)
ImportError: Numba requires at least version 0.19.0 of llvmlite.
Installed version is 0.15.0.
Please update llvmlite.
[Finished in 0.9s with exit code 1]
[shell_cmd: python -u "C:\Mega\Programmazione\prova\prova.py"]
[dir: C:\Mega\Programmazione\prova]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;c:\intelpython2;c:\intelpython2\scripts;C:\Users\carme\Anaconda2;C:\Users\carme\Anaconda2\Library\mingw-w64\bin;C:\Users\carme\Anaconda2\Library\usr\bin;C:\Users\carme\Anaconda2\Library\bin;C:\Users\carme\Anaconda2\Scripts;C:\Users\carme\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;C:\Program Files\Microsoft VS Code\bin]
in my computer, is installed llvmlite 0.19 version
conda list
# packages in environment at C:\Users\carme\Anaconda2:
#
_license 1.1 py27_1
alabaster 0.7.10 py27_0
anaconda custom py27_0
anaconda-client 1.6.3 py27_0
anaconda-navigator 1.6.2 py27_0
anaconda-project 0.6.0 py27_0
asn1crypto 0.22.0 py27_0
astroid 1.4.9 py27_0
astropy 1.3.2 np112py27_0
babel 2.4.0 py27_0
backports 1.0 py27_0
backports_abc 0.5 py27_0
beautifulsoup4 4.6.0 py27_0
bitarray 0.8.1 py27_1
blaze 0.10.1 py27_0
bleach 1.5.0 py27_0
bokeh 0.12.5 py27_1
boto 2.46.1 py27_0
bottleneck 1.2.1 np112py27_0
bzip2 1.0.6 vc9_3 [vc9]
cdecimal 2.3 py27_2
cffi 1.10.0 py27_0
chardet 3.0.3 py27_0
click 6.7 py27_0
cloudpickle 0.2.2 py27_0
clyent 1.2.2 py27_0
colorama 0.3.9 py27_0
comtypes 1.1.2 py27_0
conda 4.3.23 py27_0
conda-env 2.6.0 0
configparser 3.5.0 py27_0
console_shortcut 0.1.1 py27_1
contextlib2 0.5.5 py27_0
cryptography 1.8.1 py27_0
curl 7.52.1 vc9_0 [vc9]
cycler 0.10.0 py27_0
cython 0.25.2 py27_0
cytoolz 0.8.2 py27_0
dask 0.14.3 py27_1
datashape 0.5.4 py27_0
decorator 4.0.11 py27_0
distributed 1.16.3 py27_0
docutils 0.13.1 py27_0
entrypoints 0.2.2 py27_1
enum34 1.1.6 py27_0
et_xmlfile 1.0.1 py27_0
fastcache 1.0.2 py27_1
flask 0.12.2 py27_0
flask-cors 3.0.2 py27_0
freetype 2.5.5 vc9_2 [vc9]
funcsigs 1.0.2 py27_0
functools32 3.2.3.2 py27_0
futures 3.1.1 py27_0
get_terminal_size 1.0.0 py27_0
gevent 1.2.1 py27_0
greenlet 0.4.12 py27_0
grin 1.2.1 py27_3
h5py 2.7.0 np112py27_0
hdf5 1.8.15.1 vc9_4 [vc9]
heapdict 1.0.0 py27_1
html5lib 0.999 py27_0
icu 57.1 vc9_0 [vc9]
idna 2.5 py27_0
imagesize 0.7.1 py27_0
ipaddress 1.0.18 py27_0
ipykernel 4.6.1 py27_0
ipython 5.3.0 py27_0
ipython_genutils 0.2.0 py27_0
ipywidgets 6.0.0 py27_0
isort 4.2.5 py27_0
itsdangerous 0.24 py27_0
jdcal 1.3 py27_0
jedi 0.10.2 py27_2
jinja2 2.9.6 py27_0
jpeg 9b vc9_0 [vc9]
jsonschema 2.6.0 py27_0
jupyter 1.0.0 py27_3
jupyter_client 5.0.1 py27_0
jupyter_console 5.1.0 py27_0
jupyter_core 4.3.0 py27_0
lazy-object-proxy 1.2.2 py27_0
libpng 1.6.27 vc9_0 [vc9]
libtiff 4.0.6 vc9_3 [vc9]
llvmlite 0.19.0 py27_0
locket 0.2.0 py27_1
lxml 3.7.3 py27_0
markupsafe 0.23 py27_2
matplotlib 2.0.2 np112py27_0
menuinst 1.4.7 py27_0
mistune 0.7.4 py27_0
mkl 2017.0.1 0
mkl-service 1.1.2 py27_3
mpmath 0.19 py27_1
msgpack-python 0.4.8 py27_0
multipledispatch 0.4.9 py27_0
navigator-updater 0.1.0 py27_0
nbconvert 5.1.1 py27_0
nbformat 4.3.0 py27_0
networkx 1.11 py27_0
nltk 3.2.3 py27_0
nose 1.3.7 py27_1
notebook 5.0.0 py27_0
numba 0.34.0 np112py27_0
numexpr 2.6.2 np112py27_0
numpy 1.12.1 py27_0
numpydoc 0.6.0 py27_0
odo 0.5.0 py27_1
olefile 0.44 py27_0
openpyxl 2.4.7 py27_0
openssl 1.0.2l vc9_0 [vc9]
packaging 16.8 py27_0
pandas 0.20.1 np112py27_0
pandocfilters 1.4.1 py27_0
partd 0.3.8 py27_0
path.py 10.3.1 py27_0
pathlib2 2.2.1 py27_0
patsy 0.4.1 py27_0
pep8 1.7.0 py27_0
pickleshare 0.7.4 py27_0
pillow 4.1.1 py27_0
pip 9.0.1 py27_1
ply 3.10 py27_0
prompt_toolkit 1.0.14 py27_0
psutil 5.2.2 py27_0
py 1.4.33 py27_0
pycosat 0.6.2 py27_0
pycparser 2.17 py27_0
pycrypto 2.6.1 py27_6
pycurl 7.43.0 py27_2
pyflakes 1.5.0 py27_0
pygments 2.2.0 py27_0
pylint 1.6.4 py27_1
pyodbc 4.0.16 py27_0
pyopenssl 17.0.0 py27_0
pyparsing 2.1.4 py27_0
pyqt 5.6.0 py27_2
pytables 3.2.2 np112py27_4
pytest 3.0.7 py27_0
python 2.7.13 1
python-dateutil 2.6.0 py27_0
pytz 2017.2 py27_0
pywavelets 0.5.2 np112py27_0
pywin32 220 py27_2
pyyaml 3.12 py27_0
pyzmq 16.0.2 py27_0
qt 5.6.2 vc9_4 [vc9]
qtawesome 0.4.4 py27_0
qtconsole 4.3.0 py27_0
qtpy 1.2.1 py27_0
requests 2.14.2 py27_0
rope 0.9.4 py27_1
ruamel_yaml 0.11.14 py27_1
scandir 1.5 py27_0
scikit-image 0.13.0 np112py27_0
scikit-learn 0.18.1 np112py27_1
scipy 0.19.0 np112py27_0
seaborn 0.7.1 py27_0
setuptools 27.2.0 py27_1
simplegeneric 0.8.1 py27_1
singledispatch 3.4.0.3 py27_0
sip 4.18 py27_0
six 1.10.0 py27_0
snowballstemmer 1.2.1 py27_0
sortedcollections 0.5.3 py27_0
sortedcontainers 1.5.7 py27_0
sphinx 1.5.6 py27_0
spyder 3.1.4 py27_0
sqlalchemy 1.1.9 py27_0
ssl_match_hostname 3.4.0.2 py27_1
statsmodels 0.8.0 np112py27_0
subprocess32 3.2.7 py27_0
sympy 1.0 py27_0
tblib 1.3.2 py27_0
testpath 0.3 py27_0
tk 8.5.18 vc9_0 [vc9]
toolz 0.8.2 py27_0
tornado 4.5.1 py27_0
traitlets 4.3.2 py27_0
unicodecsv 0.14.1 py27_0
vs2008_runtime 9.00.30729.5054 0
vs2015_runtime 14.0.25123 0
wcwidth 0.1.7 py27_0
werkzeug 0.12.2 py27_0
wheel 0.29.0 py27_0
widgetsnbextension 2.0.0 py27_0
win_unicode_console 0.5 py27_0
wrapt 1.10.10 py27_0
xlrd 1.0.0 py27_0
xlsxwriter 0.9.6 py27_0
xlwings 0.10.4 py27_0
xlwt 1.2.0 py27_0
zict 0.1.2 py27_0
zlib 1.2.8 vc9_3 [vc9]