Skip to content

Commit c99f0d3

Browse files
committed
Use inspect to avoid virtual env custom site package pypa/virtualenv#228
1 parent 97522f0 commit c99f0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/g3doc/get_started/os_setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ The exact location of the Python library depends on your system, but is usually
269269
You can find out the directory with the following command:
270270

271271
```bash
272-
$ python -c 'import site; print("\n".join(site.getsitepackages()))'
272+
$ python -c 'import os; import inspect; import tensorflow; print(os.path.dirname(inspect.getfile(tensorflow)))'
273273
```
274274

275275
The simple demo model for classifying handwritten digits from the MNIST dataset

0 commit comments

Comments
 (0)