Probably, pip
installs packages into dist-packages
directory, which is not included into PYTHONPATH
environment variable. You have a couple of solutions:
- Create and configure
virtualenv
for your project, before usingpip
. This is the most Pythonic way - Try to install
Django
using built-in pip module:python -m pip install django
This command should install packages intosite-packages
directory. - You may also add
dist-packages
to yourPYTHONPATH
. This question should help you: How to globally modify the default PYTHONPATH (sys.path)?
Related Posts:
- django import error – No module named core.management
- Permanently add a directory to PYTHONPATH?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- How to find which version of TensorFlow is installed in my system?
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- Where does pip install its packages?
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- django: TypeError: ‘tuple’ object is not callable
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- No module named ‘psycopg2’
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- No module named MySQLdb
- No module named MySQLdb
- How to check Django version
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- is not JSON serializable
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- How do I find out my PYTHONPATH using Python?
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- No module named pkg_resources
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- Can’t compare naive and aware datetime.now() <= challenge.datetime_end
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- How to tell if tensorflow is using gpu acceleration from inside python shell?
- PyLint “Unable to import” error – how to set PYTHONPATH?
- Forbidden (403) CSRF verification failed. Request aborted. Even using the {% csrf_token %}
- Django 2.1.3 Error: __init__() takes 1 positional argument but 2 were given
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Setting Django up to use MySQL
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- OSError – Errno 13 Permission denied
- Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
- Pylint “unresolved import” error in Visual Studio Code
- Django – no such table exception
- django MultiValueDictKeyError error, how do I deal with it
- Django – no such table exception
- Is there a list of Pytz Timezones?
- Django – “no module named django.core.management”
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- NumPy array is not JSON serializable
- You are trying to add a non-nullable field ‘new_field’ to userprofile without a default
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- super(type, obj): obj must be an instance or subtype of type
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- Django Rest Framework — no module named rest_framework
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- Python Django: You’re using the staticfiles app without having set the STATIC_ROOT setting
- sqlite3.OperationalError: unable to open database file
- TypeError: int() argument must be a string, a bytes-like object or a number, not ‘list’
- Django reverse lookup of foreign keys
- ImportError: No module named ‘xlrd’
- No module named ‘openpyxl’ – Python 3.4 – Ubuntu
- ImportError: No module named ‘django.core.urlresolvers’
- How to Install pip for python 3.7 on Ubuntu 18?
- How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install django-heroku using pip
- How to set environment variables in PyCharm?
- H14 error in heroku – “no web processes running”
- What does this Django regular expression mean? `?P`
- OperationalError: database is locked
- Is it better to use path() or url() in urls.py for django 2.0?
- What is a “slug” in Django?
- TemplateDoesNotExist at /
- What is the easiest way to clear a database from the CLI with manage.py in Django?
- What does on_delete do on Django models?
- Check if an object exists
- Find object in list that has attribute equal to some value (that meets any condition)
- How to check if a user is logged in (how to properly use user.is_authenticated)?
- The view didn’t return an HttpResponse object. It returned None instead
- CSV new-line character seen in unquoted field error
- gunicorn.errors.HaltServer:
django - coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- How to completely uninstall python 2.7.13 on Ubuntu 16.04
- coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- How to query as GROUP BY in django?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Install pip for python 3.5
- What is related_name used for?
- TypeError: ManyRelatedManager object is not iterable
- What is the most efficient way to store a list in the Django models?
- Line is too long. Django PEP8
- __init__() got an unexpected keyword argument ‘user’
- Use Gif Logo For Loading Screen In Kivy
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- are there dictionaries in javascript like python?
- How do I update\upgrade pip itself from inside my virtual environment?
- `from … import` vs `import .` [duplicate]
- Get a list from Pandas DataFrame column headers
- Pytorch reshape tensor dimension
- How to iterate over columns of pandas dataframe to run regression
- JSON to pandas DataFrame
- Pandas long to wide reshape, by two variables
- Plot correlation matrix using pandas
- How to fix “AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph'”?
- Matplotlib plots: removing axis, legends and white spaces
- Can I remove script tags with BeautifulSoup?