Correspondence memo when the direction key cannot be used on the python command line

Introduction

Every time I built a new python environment with virtualenv etc., I searched again for "How do I do it?", So for the time being, a memo for myself.

Prerequisites

This time, I will not use virtualenv, but install it in the pre-installed version of python.

environment

mac os

Installation

sudo pip install readline Only this.

important point

However, there are some caveats.

For example, if you have multiple versions of python installed in your environment Suppose python is scattered in the following places.

/usr/bin 
/usr/local/bin 

So, when "/ usr / local / bin" is called with priority due to the reading order of PATH Installing readline does not reflect that functionality. Normal install with pip seems to install for "/ usr / bin".

Is there a way to install this in python in "usr / local / bin"? Or maybe it's not good to install various pythons like this. Please let me know if you understand.

Recommended Posts

Correspondence memo when the direction key cannot be used on the python command line
Python note: When the pip command cannot be used
Python standard module that can be used on the command line
The --security option cannot be used with the dnf command on CentOS Linux
The problem that the ifconfig command cannot be used
Solution when the image cannot be displayed with tkinter [python]
Linux delete command when only the folder cannot be deleted
You search commandlinefu on the command line
I want to be notified when the command operation is completed on linux!
Quickly display the QR code on the command line
"Temporary solution" when pip cannot be updated [Python]
[Linux] When "| (pipe)" cannot be hit on CentOS7
Frequently used (personally) notes on the tar command
Arduino development on the command line: vim + platformio
Investigation when import cannot be done with python
Syntax highlighting on the command line using Pygments
Convert XLSX to CSV on the command line
Operate Route53 on the command line using AWS-CLI.
Think about the selective interface on the command line
Steps to use the AWS command line interface (Python / awscli) on Mac OS X
The --security option cannot be used with the dnf command on CentOS Linux
[Memorandum] Japanese keys cannot be used in python string.Template.substitute
[android] When AVD cannot be used with permission denied
Causes when python version cannot be changed using pyenv
list comprehension because operator.methodcaller cannot be used in python 2.5
Operators ++,-cannot be used in python (difference from php)
About the --enable-shared option when building Python on Linux
Minimum memo when using Python on Mac (pyenv edition)
[Redash] Standard library cannot be used in python function
[Small story] How to install the module when pip cannot be used due to proxy etc.
Correspondence when an alert is issued by the workon command after installing virtualenv (MacOS10.10 + Python3.4)
Basic Python command memo
Search for large files on Linux from the command line
Use Python 3 introduced with command line tools on macOS Catalina
Record of actions to be taken when google_image_download cannot be used
[Python] Variadic arguments can be used when unpacking iterable elements
Master the type in Python? (When should type check be done)
When Times New Roman cannot be used with matplotlib (Ubuntu)
"Let Python do the boring things" exercise ~ Command line mailer ~
Scripts that can be used when using bottle in Python
When you want to hit a UNIX command on Python
[Python] I tried to make a simple program that works on the command line using argparse.