- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The default Movidius is install Caffe, TensorFlow with Python 3 environment.
If I want to install with Python 2, what can I do?
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Tome_at_Intel Thank you.
I tried it and found that python 2 can import mvncapi, but can't import cv2, caffe, and tensorflow (maybe because they're installed on python 3)
If I want to use them on python 2, how can I do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@miily Can you provide some information about your host system? Also try going to your Ncappzoo/tensorflow/inception_v1 directory and do a make
. Then try the following command python2 run.py
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Tome_at_Intel
I did
make
in ncsdk/example/tensorflow/inception_v1 directory and tried python2 run.py
. I got below error.
Traceback (most recent call last):
File "run.py", line 22, in
import cv2
ImportError: No module named cv2
and when I use python3 run.py
, it is successful execution like below:
Number of categories: 1001
Start download to NCS…
inception-v1 on NCS
547 electric guitar 0.97314
403 acoustic guitar 0.011787
883 vacuum, vacuum cleaner 0.0058098
421 banjo 0.0034828
492 chain saw, chainsaw 0.00058222
Finished
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@miily Try pip install opencv-python
and then trying python2 run.py
again. Let me know if this works for you. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Tome_at_Intel It's works, thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@miily You're welcomed!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page