MAC installe python3 et pip3

Avant Après l'Anaconda delete doivent re-télécharger python3et pip3
suivez les instructions site Justice pour télécharger des problèmes de déchargement de colis en ligne ,
mais le site officiel est relativement facile à télécharger après la prochaine ... il
a été utilisé installé sur le site officiel du paquet a été oublié dans la peine de fin n'est pas du mal
à ce va - et - vient est la troisième fois que j'ai installé python3 un dossier , il
emmmm j'ai choisi d'essayer d'utiliserhome-brew

Installer l'infusion

Entrée terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Vérifier après l'installation

brew doctor  

Sortie: “Your system is ready to brew”indique une installation réussie

提示: 安装 brew 很慢 下载完成可以改一下国内源地址

Une explication plus détaillée https://zhuanlan.zhihu.com/p/59805070

cd ~
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh >> brew_install

Ouvrez brew_install et
Insérez la description de l'image ici
modifiez BREW_REPO

# BREW_REPO="https://github.com/Homebrew/brew"
BREW_REPO="git://mirrors.ustc.edu.cn/brew.git"

Après modification et enregistrement, exécutez ce qui suit

mkdir -p /usr/local/Homebrew/Library/Taps/homebrew/
cd /usr/local/Homebrew/Library/Taps/homebrew
git clone https://mirrors.ustc.edu.cn/homebrew-core.git

Configuration voir le terminal d' brew helpaffichage de l' aide pour l'installation réussie

Voir la source

# 查看brew镜像源
git -C "$(brew --repo)" remote -v
# 查看homebrew-core镜像源
git -C "$(brew --repo homebrew/core)" remote -v
# 查看homebrew-cask镜像源(需要安装后才能查看)
git -C "$(brew --repo homebrew/cask)" remote -v 

S'il s'agit de https://github.com/Homebrew/brew.gitla source, elle doit être modifiée

# 修改brew镜像源
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 修改homebrew-core镜像源
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# 修改homebrew-cask镜像源(需要安装后才能修改)
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# 更新
brew update

Installer python3

Trouver python3

brew search python3

Installer python3

brew install python3

Insérez la description de l'image ici
python3 --version Voir la version

惊喜的发现用 brew 安装 python3 会连 pip3 一起安装
Il n'est donc pas nécessaire d'installer pip3 séparément

Publié 41 articles originaux · Likes2 · Visites 1836

Je suppose que tu aimes

Origine blog.csdn.net/weixin_43883485/article/details/105208546
conseillé
Classement