cd ~
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/python@2.rb
brew install python@2.rb
rm python@2.rb
如果报错:
Error: python@2: Invalid bottle tag symbol
image.png
以上还是不行,直接采用
https://www.anaconda.com/distribution/#download-section
解决
ps: https://www.cnblogs.com/v5captain/p/12640898.html
//安装python2.7
conda create -n py27 python=2.7 //会提示需要下载相应的py2.7安装包,输入y回车即可。
$ conda activate py27 //激活虚拟环境
$ conda deactivate //退出虚拟环境
conda info -e #查看已有的环境
conda remove -n env_name --all #删除环境
conda install -n py27 anaconda #在py27下安装科学计算的包,包很多,慎重选择
算了,小马调试器没啥用,启动不起来
网友评论