You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/en/install/pip.md
+8-38Lines changed: 8 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,53 +232,23 @@ The following NVIDIA® software are only required for GPU support.
232
232
233
233
Note: Do not install TensorFlow with `conda`. It may not have the latest stable version. `pip` is recommended since TensorFlow is only officially released to PyPI.
234
234
235
-
### 5. Set environment variables
235
+
### 5. Virtual environment configuration
236
236
237
237
You can skip this section if you only run TensorFlow on the CPU.
238
238
239
-
Locate the directory for the venv environment in your terminal window by running in the terminal:
240
-
`echo $VIRTUAL_ENV`
241
-
242
-
Enter that directory and add the following lines at the end of the activate script `./bin/activate` as follows:
239
+
* Create symbolic links to NVIDIA shared libraries:
Add the following lines at the end of `deactivate` block in the activate script to ensure that the necessary NVIDIA environment variables are set only while the virtual environment is active:
247
+
* Create a symbolic link to ptxas:
262
248
263
249
```bash
264
-
deactivate () {
265
-
# ...
266
-
# Unset the added path to PATH if within the virtual environment
267
-
if [ -n "$VIRTUAL_ENV" ]; then
268
-
# Remove the path from PATH
269
-
PATH=$(echo $PATH | sed -e "s|${PTXAS_DIR}/*/bin/:||g")
0 commit comments