Open
Description
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'
Metadata
Metadata
Assignees
Labels
No labels