There are two options I’m aware of.
One, change the PYTHONPATH
environment variable to include the directory above your module.
Alternatively, edit ~/.pylintrc
to include the directory above your module, like this:
[MASTER] init-hook='import sys; sys.path.append("/path/to/root")'
(Or in other version of pylint, the init-hook requires you to change [General] to [MASTER])
Both of these options ought to work.
Hope that helps.
Related Posts:
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to uninstall a package installed with pip install –user
- Permanently add a directory to PYTHONPATH?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- Using Python 3 in virtualenv
- Where does pip install its packages?
- Where does pip install its packages?
- How to activate an Anaconda environment
- No acceptable C compiler found in $PATH when installing python
- Updating matplotlib in virtualenv with pip
- How to activate virtualenv in Linux?
- How do I find out my PYTHONPATH using Python?
- ImportError: No module named ‘encodings’
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to leave/exit/deactivate a Python virtualenv
- What is the easiest way to remove all packages installed by pip?
- django import error – No module named core.management
- Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
- Is it possible to ignore one single specific line with Pylint?
- What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
- Pylint “unresolved import” error in Visual Studio Code
- Virtualenv Command Not Found
- Error message “Linter pylint is not installed”
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- bash: mkvirtualenv: command not found
- How do I disable “missing docstring” warnings at a file-level in Pylint?
- ImportError: No module named Crypto.Cipher
- Use different Python version with virtualenv
- How do I disable a Pylint warning?
- ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file
- What’s the difference between “virtualenv” and “-m venv” in creating Virtual environments(Python)
- Issue with virtualenv – cannot activate
- No module named django but it is installed
- Unable to install boto3
- Virtualenv not compatible with this system or executable
- SyntaxError: unexpected EOF while parsing
- Converting list to numpy array
- How do I parse a string to a float or int?
- Check if something is (not) in a list in Python
- How to parse data in JSON format?
- TypeError: unhashable type: ‘dict’
- ‘Conda’ is not recognized as internal or external command
- Python list of dictionaries search
- Extract file name from path, no matter what the os/path format
- Importing requests module does not work
- Converting string into datetime
- How do I read CSV data into a record array in NumPy?
- How to normalize a NumPy array to a unit vector?
- Is arr.__len__() the preferred way to get the length of an array in Python?
- Running Python from Atom
- TypeError: can’t use a string pattern on a bytes-like object in re.findall()
- inserting characters at the start and end of a string
- Python: SyntaxError: keyword can’t be an expression
- The tilde operator in Python
- Explain __dict__ attribute
- How to pretty print nested dictionaries?
- Is there a linked list predefined library in Python?
- return, return None, and no return at all?
- What does [:-1] mean/do in python? [duplicate]
- Displaying better error message than “No JSON object could be decoded”
- How do I check if a string is a number (float)?
- How do I print colored output to the terminal in Python?
- Dictionary in a numpy array?
- Pythonic way to find maximum value and its index in a list?
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- Spyder Not Launching
- How to calculate a Gaussian kernel matrix efficiently in numpy?
- AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas
- Python Pandas ValueError Arrays Must be All Same Length
- Anaconda / Python: Change Anaconda Prompt User Path
- Pycharm and sys.argv arguments
- ImportError: No module named ‘yaml’
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- super(type, obj): obj must be an instance or subtype of type
- What does “hashable” mean in Pytho
- Python multiprocessing.Pool: AttributeError
- Convert string to ASCII value python
- “Divide by zero encountered in log” when not dividing by zero
- How to delete a specific line in a file?
- How does ajax work with python?
- RSA encryption and decryption in Python
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- What does {0} mean in this Python string?
- Tab Error in Python
- Installation of pygame with Anaconda
- Is there a Python equivalent of the C# null-coalescing operator?
- Python 3.6 import requests
- Tensorflow 2.0 – AttributeError: module ‘tensorflow’ has no attribute ‘Session’
- What is key=lambda
- Extract a part of the filepath (a directory) in Python
- What is the meaning of “int(a[::-1])” in Python?
- Pandas unstack problems: ValueError: Index contains duplicate entries, cannot reshape
- How do I read image data from a URL in Python?
- Python: Convert timedelta to int in a dataframe
- Can’t concat bytes to str
- Invalid syntax when using “print”?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Python MySQLdb not importing