一、新环境搭建与适应
1、easy_install和pip的安装使用
mac zsh: command not found: pip解决方法
1️⃣首先运行如下指令
curl https://bootstrap.pypa.io/pip/get-pip.py -o get-pip.py
/Users/zhihongli/Library/Python/3.9/bin
2️⃣根据警告信息替换如下(实际是修改环境变量目录过程)
echo 'exportPATH=/Users/zhihongli/Library/Python/3.9/bin:$PATH' >>~/.bashrc
3️⃣最后执行以下命令进行保存
source ~/.bashrc
2、关于安装包超时的解决方案
pip --default-timeout=100 install -U 包名
- 简单粗暴,直接安装Numpy、Pandas,亲测高效(终极方法)
3、brew安装包安装
1️⃣执行如下关键命令