比如我要在python3.7中安装tensorflow,但是Mac OS系统默认的pip对应到python2.7或python3.8。直接在终端中使用下面命令便可将tensorflow下载到python3.7中:
python3.7 -m pip install tensorflow
觉得慢可以使用清华的镜像:
python3.7 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
比如我要在python3.7中安装tensorflow,但是Mac OS系统默认的pip对应到python2.7或python3.8。直接在终端中使用下面命令便可将tensorflow下载到python3.7中:
python3.7 -m pip install tensorflow
觉得慢可以使用清华的镜像:
python3.7 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow