The simplest way would be to add an alias to python3
to always point to the native python
installed. Add this line to the .bash_profile
file in your $HOME
directory at the last,
alias python="python3"
Doing so makes the changes to be reflected on every interactive shell opened.
Related Posts:
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- mvn command not found in OSX Mavrerick
- mvn command not found in OSX Mavrerick
- How do I edit $PATH (.bash_profile) on OS X?
- -bash: export: `=’: not a valid identifier
- Python/Django: log to console under runserver, log to file under Apache
- How can I upgrade specific packages using pip and a requirements file?
- bash: pip: command not found
- How to uninstall Anaconda completely from macOS
- ImportError: No module named pip
- How do I install pip on macOS or OS X?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How can I run python in terminal on a mac?
- Does Python have a toString() equivalent, and can I convert a class to String?
- What does export PS1=”\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ” mean in MacOS’ bash Terminal?
- Where does pip install its packages?
- django: TypeError: ‘tuple’ object is not callable
- How do I execute a bash script in Terminal?
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- Installing Homebrew on OS X
- pip or pip3 to install packages for Python 3?
- socket.error: [Errno 48] Address already in use
- How to check Django version
- Terminal error: zsh: permission denied: ./startup.sh
- ImportError: No module named sklearn (Python)
- bash: pip: command not found
- How to run Conda?
- How to change default Python version?
- is not JSON serializable
- How to reload .bashrc settings without logging out and back in again?
- What version of Python is on my Mac?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- ModuleNotFoundError: No module named ‘matplotlib’
- Install mysql-python (Windows)
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- No module named pkg_resources
- ‘NOT NULL constraint failed’ after adding to models.py
- django display message after POST form submit
- Can’t compare naive and aware datetime.now() <= challenge.datetime_end
- django import error – No module named core.management
- Forbidden (403) CSRF verification failed. Request aborted. Even using the {% csrf_token %}
- CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False
- keep getting “? Something is already running on port 3000” when I do npm start on react app
- Git Bash won’t run my python files?
- Django 2.1.3 Error: __init__() takes 1 positional argument but 2 were given
- Setting Django up to use MySQL
- from PIL import Image – ImportError: No module named PIL
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- Change default title in mac terminal window
- Recursively find all files that match a certain pattern
- OSError – Errno 13 Permission denied
- “The path python3 (from –python=python3) does not exist” error
- Running Bash commands in Python
- Running Bash commands in Python
- How can I get the file name from request.FILES?
- Django TemplateDoesNotExist?
- Virtualenv Command Not Found
- Django – no such table exception
- Is there a list of Pytz Timezones?
- Django – “no module named django.core.management”
- Clear terminal in Python [duplicate]
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- Implementing a SOA in Django using celery
- How to use vim in the terminal?
- matplotlib: RuntimeError: Python is not installed as a framework
- Django 1.7 upgrade error: AppRegistryNotReady: Apps aren’t loaded yet
- RE error: illegal byte sequence on Mac OS X
- Django Rest Framework — no module named rest_framework
- Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4
- bash: mkvirtualenv: command not found
- 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’
- Fast ping sweep in python
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- ImportError: No module named ‘django.core.urlresolvers’
- OperationalError: database is locked
- What is a “slug” in Django?
- Cannot find command ‘git’ – windows
- TemplateDoesNotExist at /
- What is the easiest way to clear a database from the CLI with manage.py in Django?
- Check if an object exists
- How to install pip for Python 3 on Mac OS X?
- Find object in list that has attribute equal to some value (that meets any condition)
- Output Django queryset as JSON
- CSV new-line character seen in unquoted field error
- coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- Getting stuck at Django error: No module named registration
- Tkinter error: Couldn’t recognize data in image file
- coercing to Unicode: need string or buffer, NoneType found when rendering in django admin
- How to query as GROUP BY in django?
- How can I display the current branch and folder path in terminal?
- What is related_name used for?
- TypeError: ManyRelatedManager object is not iterable
- How do I install pip on macOS or OS X?
- What is the most efficient way to store a list in the Django models?
- Virtualenv not compatible with this system or executable
- Error when using ‘sed’ with ‘find’ command on OS X: “invalid command code .”
- Why do I get sqlite error, “unable to open database file”?