1. Create a Python virtual environment
A. Installing the Anaconda
B.conda create-n python2 python=2. 7
C.conda Activate Python2 (enter virtual environment)
2. Enter the directory of your own code to execute PIP install-r requirements.txt
3. Download the model (need to connect the extranet)
I finished using the software netfits on my Mac, manually downloading and then moving it into the data directory.
4. Execute python./src/demo.py the error is:
Traceback (most recent):
File "./src/demo.py", line, in <module>
Import TensorFlow as TF
File "/home/supermicro/anaconda3/envs/python2.7/lib/python2.7/site-packages/tensorflow/__init__.py", line +, in <module>
From Tensorflow.python Import *
File "/home/supermicro/anaconda3/envs/python2.7/lib/python2.7/site-packages/tensorflow/python/__init__.py", line In <module>
Raise Importerror (MSG)
Importerror:traceback (most recent):
File "/home/supermicro/anaconda3/envs/python2.7/lib/python2.7/site-packages/tensorflow/python/__init__.py", line , in <module>
From Tensorflow.python import Pywrap_tensorflow
File "/home/supermicro/anaconda3/envs/python2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_ tensorflow.py ", line up, in <module>
_pywrap_tensorflow = Swig_import_helper ()
File "/home/supermicro/anaconda3/envs/python2.7/lib/python2.7/site-packages/tensorflow/python/pywrap_ tensorflow.py ", line +, in Swig_import_helper
_mod = Imp.load_module (' _pywrap_tensorflow ', FP, pathname, description)
Importerror:libcudart.so.8.0:cannot open Shared object file:no such file or directory
Failed to load the native TensorFlow runtime.
See Https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
For some common reasons and solutions. Include the entire stack trace
Above this error message is asking for help.
Workaround: Pip Install TensorFlow
I'll do it again.
There have been mistakes in the past, some of the situation is python3.5 environment a lot of wrong, step by step to install it needs to rely on, also many wrong. It's a smooth step down.
Target detection: Squeezedet (Linux)