Hướng dẫn remove /usr/bin/python3

I used to use Python 3.10.4 but I installed Python 3.8.9, Python 3.8.10 to use GPU on my 2019 MBP (Mac OS Monterey 12.4) but it did not work.

So I tried to uninstall all of my old versions of Python (3.8.9 and 3.8.10) but when I go to VSCode and select kernel for my new Jupyter Notebook file, the list shows Python 3.8.9 and 3.10.4.

Hướng dẫn remove /usr/bin/python3

And when I go to my Terminal app and I do not find 3.8.9.

Can you help me with this problem showing old version of Python?

FObersteiner

18.1k5 gold badges28 silver badges57 bronze badges

asked May 31 at 7:42

6

From my limited experience with mac os, it's possible that when you uninstalled Python you didn't change it's PATH so when you call Python, you call a legacy version.

As stated in this guide.

  • which python will show you the path of your installed python. Copy it.
  • sudo nano /etc/paths will ask you for the password and open a text editor copy the Python path in it.

try it

answered May 31 at 8:06

GirolamoGirolamo

1571 silver badge8 bronze badges

2

The python stored inside /usr/local/bin is a python installed by you, and it may be removed or updated.
In other side, python stored in /usr/bin is a default python that comes with macOS from beginning (you didn't install it)

macOS trying to use default (protected from changes) version when running some python dependable system applications. If you remove default version, that may break some OS features.

It is possible to remove default applications inside /usr/bin after turning off SIP, but I don't recommend to do that

answered May 31 at 8:13

rzlvmprzlvmp

5,0342 gold badges9 silver badges30 bronze badges

4

How to open a file in python

Open a File on the ServerAssume we have the following file, located in the same folder as Python:demofile.txt Hello! Welcome to demofile.txtThis file is for testing purposes.Good Luck!To open the ...

Hướng dẫn php unset _post variable

If you are inserting the contents of this form to database, simply use the php/sql SELECT statement to check if username has already been submitted. If yes, throw an error. Like so://Database ...

Hướng dẫn laravel-mongodb raw query

Which is better mongodb atlas or mongodb?Need advice about which tool to choose?Ask the StackShare community!MongoDB vs MongoDB Atlas: What are the differences?MongoDB: The database for giant ideas. ...

Hướng dẫn dùng method trace trong PHP

Giới thiệuHTTP (HyperText Transfer Protocol) cung cấp một số phương thức có thể được sử dụng để thực hiện các hành động trên Web Server (Tiêu chuẩn HTTP 1.1 ...

Hướng dẫn dùng cokiee JavaScript

Giới ThiệuCookie sẽ lưu giữ thông tin của người dùng trên các trang của websiteVậy cookie là gì?Cookie là dữ liệu, lưu dữ trong những file text nhỏ trên máy ...

Hướng dẫn dùng clear definition python

Hàm Dictionary clear() trong Python xóa tất cả phần tử của Dictionary.Nội dung chínhVí dụ hàm Set clear() trong PythonLấy ra và xóa phần tử của list theo index | phương ...

Display data from database in php

Select Data From a MySQL DatabaseThe SELECT statement is used to select data from one or more tables: SELECT column_name(s) FROM table_name or we can use the * character to select ALL columns from a ...

What is the size of integer in python 3?

Python 2 will automatically set the type based on the size of the value. A guide of max values can be found below.The Max value of the default Int in Python 2 is 65535, anything above that will be a ...

Hướng dẫn dùng xookies JavaScript

Đã đăng vào Jul 18th, 2019 6:41 a.m. 7 phút đọc Cookie trong JavaScript1. Cookie là gì?Các trình duyệt và Web Server sử dụng giao thức HTTP để giao tiếp và HTTP là ...

Hướng dẫn brew install python

Nếu bạn sử dụng MacOS chắc chắn bạn đã quen thuộc với công cụ brew trên MacOS. Chúng ta có thể dễ dàng sử dụng brew cài đặt các phiên bản của Python trên ...

Hướng dẫn python not found macos

Mac OS X comes with Python 2.7 out of the box.You do not need to install or configure anything else to use Python 2. These instructions document the installation of Python 3.The version of Python ...

How do i uninstall python from terminal?

This article is part of in the series Published: Wednesday 21st July 2021Last Updated: Wednesday 29th December 2021Every version of Python comes with bug fixes and security patches. To ensure that ...

Hướng dẫn insert into sql python

Câu lệnh INSERT INTO được sử dụng để thêm một bản ghi vào bảng. Trong python, chúng ta có thể sử dụng (%s) thay cho các giá trị. INSERT 1 bản ghi Phương thức ...

Hướng dẫn dùng cookiw JavaScript

Trong bài này chúng ta sẽ học cách sử dụng cookie trong javascript, qua đó sẽ giúp bạn quản lý được dữ liệu mà trình duyệt đã lưu trữ trên trang web của ...

Hướng dẫn python cli tables

New in version 3.2.Source code: Lib/argparse.pyThe argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will ...

Hướng dẫn update mysql query

Câu lệnh UPDATE trong MySQL được sử dụng để sửa đổi các bản ghi hiện có trong một bảng. Bạn có thể sử dụng mệnh đề WHERE với truy vấn UPDATE để cập ...

Get, post, put, delete python

Hello, Im Aya Bouchiha, today, well talk about sending requests in python using the requests module installation pip install requests Enter fullscreen mode Exit fullscreen mode Whats GET ...

Hướng dẫn convert to binary php

Strings in PHP are always BLOBs. So you can use a string to hold the value for your database BLOB. All of this stuff base-converting and so on has to do with presenting that BLOB.If you want a nice ...

Hướng dẫn delete list python

Nội dung chínhLấy ra và xóa phần tử của list theo index | phương thức pop()Xóa phần tử trong phạm vi chỉ định | lệnh delXóa phần tử đầu tiên trong list giống ...

Hướng dẫn dùng cookiesf JavaScript

Giới ThiệuCookie sẽ lưu giữ thông tin của người dùng trên các trang của websiteVậy cookie là gì?Cookie là dữ liệu, lưu dữ trong những file text nhỏ trên máy ...

Hướng dẫn dùng cookiev JavaScript

Trong bài này chúng ta sẽ học cách sử dụng cookie trong javascript, qua đó sẽ giúp bạn quản lý được dữ liệu mà trình duyệt đã lưu trữ trên trang web của ...

Hướng dẫn cookie trong javascript

Trong bài này chúng ta sẽ học cách sử dụng cookie trong javascript, qua đó sẽ giúp bạn quản lý được dữ liệu mà trình duyệt đã lưu trữ trên trang web của ...

Hướng dẫn dùng cookievalue JavaScript

Đã đăng vào thg 7 18, 2019 6:41 SA 7 phút đọc Cookie trong JavaScript1. Cookie là gì?Các trình duyệt và Web Server sử dụng giao thức HTTP để giao tiếp và HTTP là ...

Hướng dẫn update trong mysql

Câu lệnh UPDATE trong MySQL được sử dụng để sửa đổi các bản ghi hiện có trong một bảng. Bạn có thể sử dụng mệnh đề WHERE với truy vấn UPDATE để cập ...

Hướng dẫn dùng cookiesa JavaScript

Trong bài này chúng ta sẽ học cách sử dụng cookie trong javascript, qua đó sẽ giúp bạn quản lý được dữ liệu mà trình duyệt đã lưu trữ trên trang web của ...

Hướng dẫn tạo collection trong mongodb

This entry is part 7 of 24 in the series MongoDBMongoDB là gì? Các khái niệm trong MongoDB Hướng dẫn cài đặt, cấu hình MongoDB trên Windows 10Cài đặt và sử dụng Robo 3T ...

Hướng dẫn dùng definition remove python

Hàm Set remove() trong Python xóa phần tử được chỉ định từ một set.Nội dung chính2. Hàm set remove() trong Python2. Ví dụ hàm set remove() trong Python1. Hàm set remove() ...

Hướng dẫn laravel auth mongodb

MongoDB là hệ quản trị CSDL NoSQL phổ biến nhất trên thế giới. Tuy nhiên mặc định Laravel PHP Framework lại không hỗ trợ MongoDB. Vì vậy trong tutorial này, ...

Hướng dẫn dùng echo cookies trong PHP

Khái niệm CookieLưu CookieĐọc CookiePHP CookieKhái niệm về Session PHPSử dụng SessionHủy SessionCookie là mẩu tin nhỏ được lưu ở máy người dùng (cụ thể là ...

Hướng dẫn dùng cooike JavaScript

Trong bài này chúng ta sẽ học cách sử dụng cookie trong javascript, qua đó sẽ giúp bạn quản lý được dữ liệu mà trình duyệt đã lưu trữ trên trang web của ...

File $recycle.bin là gì

Thùng rác (Recycle Bin) đã rất quen thuộc với người dùng Windows, tuy nhiên do mọi người hay dùng từ “Thùng rác” nên dễ gây hiểu nhầm chức năng của Recycle ...