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
- ‘pip’ is not recognized as an internal or external command
- How can I upgrade specific packages using pip and a requirements file?
- bash: pip: command not found
- bash: pip: command not found
- How do I pause my shell script for a second before continuing?
- How to uninstall pip on OSX?
- How to uninstall Anaconda completely from macOS
- ImportError: No module named pip
- ImportError: No module named pip
- How do I install pip on macOS or OS X?
- How do I install pip on macOS or OS X?
- How to execute a program or call a system command?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- 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?
- ImportError: No module named pandas. Pandas installed pip
- Where does pip install its packages?
- Does Python have a toString() equivalent, and can I convert a class to String?
- Could not install packages due to a “Environment error :[error 13]: permission denied : ‘usr/local/bin/f2py'”
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- 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?
- Could not install packages due to an EnvironmentError:
- 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
- Updating Python on Mac
- How do I upgrade to Python 3.6 with conda?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- import opencv vs import cv2
- No module named ‘psycopg2’
- Is #include
bad practice? - pip or pip3 to install packages for Python 3?
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- What does the Pydoc module do?
- No module named MySQLdb
- socket.error: [Errno 48] Address already in use
- How to change default Python version?
- socket.error: [Errno 48] Address already in use
- No module named MySQLdb
- How to check Django version
- Terminal error: zsh: permission denied: ./startup.sh
- Where do I find the bashrc file on Mac?
- ImportError: No module named sklearn (Python)
- bash: pip: command not found
- How to run Conda?
- How to change default Python version?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- 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
- 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.”
- ‘NOT NULL constraint failed’ after adding to models.py
- django display message after POST form submit
- How to print colored text to the terminal
- 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
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- 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
- How can I install a previous version of Python 3 in macOS using homebrew?
- Running Bash commands in Python
- cp: missing destination file operand after
- Pylint “unresolved import” error in Visual Studio Code
- Running Bash commands in Python
- Pyspark: Exception: Java gateway process exited before sending the driver its port number
- How can I get the file name from request.FILES?
- How to print colored text to the terminal
- Django – no such table exception
- django MultiValueDictKeyError error, how do I deal with it
- Django TemplateDoesNotExist?
- Virtualenv Command Not Found
- Django – no such table exception
- standard_init_linux.go:178: exec user process caused “exec format error”
- Is there a list of Pytz Timezones?
- Django: no such table: django_session