首页  

mac安装python3     所属分类 python 浏览量 92
mac 自带 python2
python  --version
Python 2.7.18

下载 python3 

https://registry.npmmirror.com/binary.html?path=python/

python-3.7.8-macosx10.9.pkg

which python3
/usr/local/bin/python3

python3  --version
Python 3.7.8

alias python="/usr/local/bin/python3"
python
Python 3.7.8 (v3.7.8:4b47a5b6ba, Jun 27 2020, 04:47:50) 
[Clang 6.0 (clang-600.0.57)] on darwin

cat ~/.bash_profile

# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH


python3 -m http.server 8030
Serving HTTP on 0.0.0.0 port 8030 (http://0.0.0.0:8030/) ...

上一篇     下一篇
mysql insert 性能优化

联邦学习简介

idea设置源码目录

docker 容器与宿主机之间拷贝文件

联邦学习入门笔记

docker命令实战