N
N
neuroepoc2018-04-02 17:41:46
Python
neuroepoc, 2018-04-02 17:41:46

How to install tensorflow in Lubuntu 17.10 on intel N3350 processor?

lscpu output cpu options
Архитектура:         x86_64
CPU op-mode(s):      32-bit, 64-bit
Порядок байтов:      Little Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Потоков на ядро:     1
Ядер на сокет:       2
Сокет(ы):            1
NUMA node(s):        1
Vendor ID:           GenuineIntel
Семейство CPU:       6
Модель:              92
Модель:              Intel(R) Celeron(R) CPU N3350 @ 1.10GHz
Stepping:            9
CPU МГц:             1094.440
CPU max MHz:         2400,0000
CPU min MHz:         800,0000
BogoMIPS:            2188.80
Виртуализация:       VT-x
L1d cache:           24K
L1i cache:           32K
L2 cache:            1024K
NUMA node0 CPU(s):   0,1
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 pti retpoline intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts


I installed the tensorflow library (as well as other libraries with which there are no problems) with the following command:
sudo pip3 install tensorflow
I run the script with the following content:
import tensorflow
In response, in the sublime text console:
[Finished in 0.7s with exit code -4]
[cmd: ['python3', '-i', '-u', '/home/me/SRC/ensorflow.py']]
[dir: /home/me/SRC]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]

ran the script from the bash console. in response:
Недопустимая инструкция (сделан дамп памяти)
on the advice of Alexander Timuts updated pip3 removed tensorflow (version 1.6 was installed) and installed version 1.5
sudo -H pip3 uninstall tensorflow
sudo -H pip3 install tensorflow==1.5

now launch
helo word
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
produces the following
2018-04-03 14:26:46.609465: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2
b'Hello, TensorFlow!'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question