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

tensorflow should be in setup.py install_requires #19

Open
bloer opened this issue Jun 18, 2021 · 0 comments
Open

tensorflow should be in setup.py install_requires #19

bloer opened this issue Jun 18, 2021 · 0 comments

Comments

@bloer
Copy link

bloer commented Jun 18, 2021

Since tensorflow is a strict requirement it should be included in the install_requires argument in setup.py. Installing tf_slim on a fresh venv gives:

[]$ python3 -m venv venv
[]$ source venv/bin/activate
(venv) []$ pip install tf_slim
Collecting tf_slim
  Using cached tf_slim-1.1.0-py2.py3-none-any.whl (352 kB)
Collecting absl-py>=0.2.2
  Downloading absl_py-0.13.0-py3-none-any.whl (132 kB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, absl-py, tf-slim
Successfully installed absl-py-0.13.0 six-1.16.0 tf-slim-1.1.0

(venv) []$ python
Python 3.6.8 (default, Apr 25 2019, 21:02:35) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tf_slim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bloer/temp/venv/lib64/python3.6/site-packages/tf_slim/__init__.py", line 25, in <module>
    from tf_slim.layers import *
  File "/home/bloer/temp/venv/lib64/python3.6/site-packages/tf_slim/layers/__init__.py", line 23, in <module>
    from tf_slim.layers.bucketization_op import *
  File "/home/bloer/temp/venv/lib64/python3.6/site-packages/tf_slim/layers/bucketization_op.py", line 23, in <module>
    from tensorflow.python.ops import math_ops
ModuleNotFoundError: No module named 'tensorflow'
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

1 participant