首先看python解释器路径:
import sys
print(sys.path)
然后直接安装到指定路径就行
pip install 库 --target=上个命令出来的任意一个路径
或者直接用下面这个
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn tensorflow
首先看python解释器路径:
import sys
print(sys.path)
然后直接安装到指定路径就行
pip install 库 --target=上个命令出来的任意一个路径
或者直接用下面这个
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn tensorflow