summaryrefslogtreecommitdiff
path: root/doc/source/user
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-05-31 12:27:31 -0600
committerGitHub <noreply@github.com>2020-05-31 12:27:31 -0600
commit55ecf648d68f3fb9691fbe0f9c1d5e6168cc5cec (patch)
tree7d92d885343693c057d1d24d62c33a3c2a12daaa /doc/source/user
parenta0e136b0e0f21b241e97f0ed47f56f131d69f913 (diff)
parent1d57e850d5895be4bc928459059c241818f84c2c (diff)
downloadnumpy-55ecf648d68f3fb9691fbe0f9c1d5e6168cc5cec.tar.gz
Merge pull request #16306 from seberg/troubleshooting-fix-env
DOC: Fix troubleshooting code snippet when env vars are empty
Diffstat (limited to 'doc/source/user')
-rw-r--r--doc/source/user/troubleshooting-importerror.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/source/user/troubleshooting-importerror.rst b/doc/source/user/troubleshooting-importerror.rst
index acbcd3ed8..7d4846f77 100644
--- a/doc/source/user/troubleshooting-importerror.rst
+++ b/doc/source/user/troubleshooting-importerror.rst
@@ -133,10 +133,8 @@ your system. If you can open a correct python shell, you can also run the
following in python::
import os
- PYTHONPATH = os.environ['PYTHONPATH'].split(os.pathsep)
- print("The PYTHONPATH is:", PYTHONPATH)
- PATH = os.environ['PATH'].split(os.pathsep)
- print("The PATH is:", PATH)
+ print("PYTHONPATH:", os.environ.get('PYTHONPATH'))
+ print("PATH:", os.environ.get('PATH'))
This may mainly help you if you are not running the python and/or NumPy
version you are expecting to run.