A solution if you accidentally remove the python interpreter in / usr / local / bin /.

Introduction

My development environment is Linux (Ubuntu), but suddenly I can't use the ʻaptcommand, and when I checked the error, it turned out that the cause was in the python library. I'm getting some errors, and I remember, but I think the main cause waspython3-apt`. I tried and errored for about 30 minutes, but it didn't work, so I put it back in the following way.

reference

This was very helpful!

manner

https://www.python.org/downloads/source/ Find the python interpreter you removed from here and download it from Gzipped source tarball.

After that, just install it according to the README.

Installation procedure


1.Open terminal
2. ./configure
3. make
4. (make test)
5. sudo make install

Recommended Posts

A solution if you accidentally remove the python interpreter in / usr / local / bin /.
Run the Python interpreter in a script
If you want a singleton in python, think of the module as a singleton
Check if the string is a number in python
If you encounter a "Unicode Decode Error" in Python
Why do you add a main ()-if statement in Python?
Create a local scope in Python without polluting the namespace
Solution if the module is installed in Python but you get an error in Jupyter notebook
What to do if you get a minus zero in Python
Delete a particular character in Python if it is the last
If you want to assign csv export to a variable in python
Check if you can connect to a TCP port in Python
Write the test in a python docstring
Check if the URL exists in Python
What happens if you do "import A, B as C" in Python?
If you get a no attribute error in boto3, check the version
A solution to the problem that the Python version in Conda cannot be changed
If you guys in the scope kitchen can do it with a margin ~ ♪
[Python] Get the files in a folder with Python
Check if the characters are similar in Python
Get the caller of a function in Python
Make a copy of the list in Python
Until you run the changefinder sample in python
Find the solution of the nth-order equation in python
Output in the form of a python array
[Python] Find the transposed matrix in a comprehension
If you define a method in a Ruby class and define a method in it, it becomes a method of the original class.
How to check in Python if one of the elements of a list is in another list
Understand Python yield If you put yield in a function, it will change to a generator
What to do if you can't hit the arrow keys in the Python interactive console
Implement the solution of Riccati algebraic equations in Python
BigQuery-If you get a Reason: responseTooLarge error in Python
Until you insert data into a spreadsheet in Python
Write a log-scale histogram on the x-axis in python
A reminder about the implementation of recommendations in Python
What does the last () in a function mean in Python?
If you want Python completion in VS Code, Microsoft Python Language Server is the best story
What to do if you get `locale.Error: unsupported locale setting` when getting the day of the week from a date in Python
Solution if you get 0xxx ascii coding error in superset
[python] How to check if the Key exists in the dictionary
Find out the apparent width of a string in python
How to use the __call__ method in a Python class
Change the standard output destination to a file in Python
If you write TinderBot in Python, she can do it
How to import a file anywhere you like in Python
Get the number of specific elements in a python list
Do something like a Python interpreter in Visual Studio Code
[Note] Import of a file in the parent directory in Python
How to get the last (last) value in a list in Python
Find the eigenvalues of a real symmetric matrix in Python
If you think that the person you put in with pip doesn't work → Maybe you are using python3?
"A book to train programming skills to fight in the world" Python code Solution example --1.6 String compression
In the python dictionary, if a non-existent key is accessed, initialize it with an arbitrary value
Write a script in Shell and Python to notify you in Slack when the process is finished
Here are some grammars that you might get a slapstick face if you know it in Python
"A book to train programming skills to fight in the world" Python code Solution example --1.7 Matrix rotation
"A book to train programming skills to fight in the world" Python code Solution example --2.8 Loop detection
"Book to train programming skills to fight in the world" Python code Solution example --2.1 Remove duplicate elements
If you are a beginner in programming, why not make a "game" for the time being? The story