Target detection: Squeezedet (Linux)

Source: Internet
Author: User
Tags stack trace virtual environment

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.