You need to add your new directory to the environment variable PYTHONPATH
, separated by a colon from previous contents thereof. In any form of Unix, you can do that in a startup script appropriate to whatever shell you’re using (.profile
or whatever, depending on your favorite shell) with a command which, again, depends on the shell in question; in Windows, you can do it through the system GUI for the purpose.
superuser.com
may be a better place to ask further, i.e. for more details if you need specifics about how to enrich an environment variable in your chosen platform and shell, since it’s not really a programming question per se.
Related Posts:
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- How can I install pip on Windows?
- PermissionError: [Errno 13] Permission denied
- anaconda – path environment variable in windows
- How to remove anaconda from windows completely?
- How to clear the interpreter console?
- How to install pip3 on Windows?
- Python Setup Disabling Path Length Limit Pros and Cons?
- How to clear the interpreter console?
- Installing tensorflow with anaconda in windows
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- How do I find out my PYTHONPATH using Python?
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- PyLint “Unable to import” error – how to set PYTHONPATH?
- django import error – No module named core.management
- Git Bash won’t run my python files?
- How to install xgboost in Anaconda Python (Windows platform)?
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- No Module Named ‘_pywrap_tensorflow_internal’
- Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
- How to install pytorch in windows?
- How to install PyQt5 on Windows?
- How to stop Python closing immediately when executed in Microsoft Windows
- “ImportError: No module named site” on Windows
- How to downgrade the installed version of ‘pip’ on windows?
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- python pip on Windows – command ‘cl.exe’ failed
- Windows- Pyinstaller Error “failed to execute script ” When App Clicked
- python is not recognized windows 10
- Anaconda Installed but Cannot Launch Navigator
- ImportError: No module named cv2
- How to get the text cursor position in Windows?
- ImportError: cannot import name NUMPY_MKL
- No module named django but it is installed
- Open File in Another Directory (Python)
- How to know/change current directory in Python shell?
- Python official installer missing python27.dll
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Error: No module named ‘fcntl’
- Anaconda “failed to create process”
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How to print an exception in Python?
- What are “named tuples” in Python?
- What do these operators mean (** , ^ , %, //)? [closed]
- Python open() gives FileNotFoundError/IOError: Errno 2 No such file or directory
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- FileNotFoundError: [Errno 2] No such file or directory
- Where do I find the bashrc file on Mac?
- ValueError: setting an array element with a sequence
- Why does num = 100?
- How do order of operations go on Python?
- Python group by
- What is the difference between pip and conda?
- How to clear variables in ipython?
- How does the “view” method work in PyTorch?
- TypeError: generatecode() takes 0 positional arguments but 1 was given
- python – if not in list
- syntaxError: ‘continue’ not properly in loop
- How to get the ASCII value of a character
- Reverse / invert a dictionary mapping
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- TypeError: unsupported operand type(s) for -: ‘list’ and ‘list’
- What’s the difference between a Python module and a Python package?
- How to overcome “datetime.datetime not JSON serializable”?
- AttributeError: ‘datetime’ module has no attribute ‘strptime’
- Where does this come from: -*- coding: utf-8 -*-
- Open file in a relative location in Python
- Python add item to the tuple
- How to print a dictionary’s key?
- How to check the version of scipy
- How to check if type of a variable is string?
- How to print colored text to the terminal
- Understanding NumPy’s einsum
- For loop and ‘numpy.float64’ object is not iterable error
- Error message “Linter pylint is not installed”
- AttributeError: ‘Tensor’ object has no attribute ‘_keras_history’
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- Zsh: Conda/Pip installs command not found
- Find the nth occurrence of substring in a string
- Pandas index column title or name
- Removing nan values from an array
- Python – While-Loop until list is empty
- ImportError: No module named xgboost
- How to properly create a HeatMap with Bokeh
- How to detect key presses?
- NaN loss when training regression network
- Building multi-regression model throws error: `Pandas data cast to numpy dtype of object. Check input data with np.asarray(data).`
- TypeError: ‘set’ object does not support indexing
- creating a reverse method for a python list from scratch
- What does on_delete do on Django models?
- Convert floats to ints in Pandas?
- Unable to import tweepy module
- pandas comparison raises TypeError: cannot compare a dtyped [float64] array with a scalar of type [bool]
- NameError: name ‘python’ is not defined
- NameError: name ‘reduce’ is not defined in Python
- numpy : calculate the derivative of the softmax function
- Difference between exit(0) and exit(1) in Python
- IOError: [Errno 32] Broken pipe when piping: `prog.py | othercmd`