models icon indicating copy to clipboard operation
models copied to clipboard

ModuleNotFoundError: No module named 'object_detection' mac

Open vidit2011998 opened this issue 8 years ago • 5 comments

Please go to Stack Overflow for help and support:

http://stackoverflow.com/questions/tagged/tensorflow

Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:

  1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
  2. The form below must be filled out.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.


System information

  • What is the top-level directory of the model you are using:
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow installed from (source or binary):
  • TensorFlow version (use command below):
  • Bazel version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:
  • Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

vidit2011998 avatar Nov 18 '18 04:11 vidit2011998

Have you tried the following:

From tensorflow/models/research/

export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim

before and after the 2 pwd you need to put the ` character. somehow the github comment marks this text differently and doesn't show it.

You need to export the environmental variables every time you open a new terminal in that environment.

MaesIT avatar Nov 18 '18 11:11 MaesIT

In root folder use python setup.py install (research/setup.py)

S601327412 avatar Nov 21 '18 06:11 S601327412

@MaesIT There are ` chars before and after pwd if you look at the latest document.

pkulzc avatar Dec 02 '18 17:12 pkulzc

Closing this as the answer seems clear.

pkulzc avatar Dec 02 '18 18:12 pkulzc

If you're using Windows, the command should be

set PYTHONPATH=$PYTHONPATH:pwd:pwd/slim

vicsun0425 avatar Jun 10 '21 02:06 vicsun0425