Tensorflow API Ubuntu 14.04 python 2.7 Error
from utils import label_map_util
ImportError: No module named utils
I tried to fix this problem but I can't, this similar my case
Case 1 and Case 2
please help me if Ubuntu 14.04 with python 2.7 fix it
thanks in advance!!
python-2.7 tensorflow
add a comment |
from utils import label_map_util
ImportError: No module named utils
I tried to fix this problem but I can't, this similar my case
Case 1 and Case 2
please help me if Ubuntu 14.04 with python 2.7 fix it
thanks in advance!!
python-2.7 tensorflow
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08
add a comment |
from utils import label_map_util
ImportError: No module named utils
I tried to fix this problem but I can't, this similar my case
Case 1 and Case 2
please help me if Ubuntu 14.04 with python 2.7 fix it
thanks in advance!!
python-2.7 tensorflow
from utils import label_map_util
ImportError: No module named utils
I tried to fix this problem but I can't, this similar my case
Case 1 and Case 2
please help me if Ubuntu 14.04 with python 2.7 fix it
thanks in advance!!
python-2.7 tensorflow
python-2.7 tensorflow
edited Jan 2 at 5:09


ivcubr
83421016
83421016
asked Jan 2 at 1:48


Algabri RedhwanAlgabri Redhwan
54
54
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08
add a comment |
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08
add a comment |
1 Answer
1
active
oldest
votes
First, clone this:https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection
:
import sys
sys.path
sys.path.insert(0, 'path/to/your/object_detection')
Or this way
import( os )
os.chdir( 'path/to/your/object_detection' )
and change your import to be:
from object_detection.utils import label_map_util
runsudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577
– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
|
show 1 more comment
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54000365%2ftensorflow-api-ubuntu-14-04-python-2-7-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First, clone this:https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection
:
import sys
sys.path
sys.path.insert(0, 'path/to/your/object_detection')
Or this way
import( os )
os.chdir( 'path/to/your/object_detection' )
and change your import to be:
from object_detection.utils import label_map_util
runsudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577
– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
|
show 1 more comment
First, clone this:https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection
:
import sys
sys.path
sys.path.insert(0, 'path/to/your/object_detection')
Or this way
import( os )
os.chdir( 'path/to/your/object_detection' )
and change your import to be:
from object_detection.utils import label_map_util
runsudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577
– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
|
show 1 more comment
First, clone this:https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection
:
import sys
sys.path
sys.path.insert(0, 'path/to/your/object_detection')
Or this way
import( os )
os.chdir( 'path/to/your/object_detection' )
and change your import to be:
from object_detection.utils import label_map_util
First, clone this:https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection
:
import sys
sys.path
sys.path.insert(0, 'path/to/your/object_detection')
Or this way
import( os )
os.chdir( 'path/to/your/object_detection' )
and change your import to be:
from object_detection.utils import label_map_util
answered Jan 2 at 5:21
i_thi_th
1,1851819
1,1851819
runsudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577
– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
|
show 1 more comment
runsudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577
– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
run
sudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577– i_th
Jan 7 at 3:39
run
sudo pip install object_detection
if you face a problem see this github.com/tensorflow/models/issues/2577– i_th
Jan 7 at 3:39
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
thank you again, my problem in paths, it worked now 1. MODEL_NAME = '/inference_graph/placeholder.txt' , 2. CWD_PATH = os.getcwd(), 3.PATH_TO_CKPT = CWD_PATH + '/frozen_inference_graph.pb' , 4. PATH_TO_LABELS = os.path.join(CWD_PATH,'training','/home/redhwan/models/research/object_detection/data/mscoco_label_map.pbtxt')
– Algabri Redhwan
Jan 7 at 7:00
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
Could not find a version that satisfies the requirement object_detection (from versions: ) No matching distribution found for object_detection
– Algabri Redhwan
Jan 7 at 7:07
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
thank you again, I used this link:github.com/tensorflow/models/blob/master/research/…, after this I change in paths (in code), finally, it worked
– Algabri Redhwan
Jan 7 at 7:11
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
I am very sorry, I deleted it this comment inadvertently because of lack of experience: from object_detection.protos import string_int_label_map_pb2 ImportError: No module named object_detection.protos
– Algabri Redhwan
Jan 7 at 7:17
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54000365%2ftensorflow-api-ubuntu-14-04-python-2-7-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you try 'pip install utils' ?
– jman
Jan 2 at 2:00
See this:pypi.org/project/python-utils and this:stackoverflow.com/questions/46494160/…
– i_th
Jan 2 at 5:11
the output:Requirement already satisfied: python-utils in /usr/local/lib/python3.4/dist-packages (2.3.0) Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from python-utils) (1.12.0)
– Algabri Redhwan
Jan 3 at 12:07
path python 3 not python 2.7!!! how I can solve it???please
– Algabri Redhwan
Jan 3 at 12:08