Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command not found #165

Open
youutubee opened this issue Mar 27, 2024 · 2 comments
Open

command not found #165

youutubee opened this issue Mar 27, 2024 · 2 comments

Comments

@youutubee
Copy link

Install Tensorflow Object Detection

if os.name=='posix':
!apt-get install protobuf-compiler
!cd Tensorflow/models/research && protoc object_detection/protos/*.proto --python_out=. && cp object_detection/packages/tf2/setup.py . && python -m pip install .

if os.name=='nt':
url="https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-win64.zip"
wget.download(url)
!move protoc-3.15.6-win64.zip {paths['PROTOC_PATH']}
!cd {paths['PROTOC_PATH']} && tar -xf protoc-3.15.6-win64.zip
os.environ['PATH'] += os.pathsep + os.path.abspath(os.path.join(paths['PROTOC_PATH'], 'bin'))
!cd Tensorflow/models/research && protoc object_detection/protos/*.proto --python_out=. && copy object_detection\packages\tf2\setup.py setup.py && python setup.py build && python setup.py install
!cd Tensorflow/models/research/slim && pip install -e .

below error in running the above code im using a mac m1 machine

zsh:1: command not found: apt-get
zsh:1: command not found: protoc

@CodeInVeins
Copy link

@youutubee Seems like you are on Z Shell and not on bash, for that you might have to use brew for installing stuff
e.g. brew install wget or anything to your liking.

@davemaster
Copy link

davemaster commented Apr 24, 2024

wget must be installed in python environment

then before be used, call "import wget"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants