python库路径问题

这个是正确路径

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages

 

 

用pip3安装的一般会安装到其他地方,找到它,把它拷贝到上面路径的文件夹里就可以的!!

//pip3安装的错误路径,如下:

/usr/local/lib/python3.7/site-packages
/usr/local/lib/python3.8/site-packages

 

//update 2020.9.16

之前我都是每安装一次包就把文件夹从/usr/local/lib/python3.8/site-packages手动移动到/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages,
现在我直接在zshrc中更改了路径,一劳永逸啦

 

#export PATH="/usr/local/opt/python@3.8/bin:$PATH"

export PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:$PATH"

 

posted @ 2020-03-23 20:16  WeiAR  阅读(861)  评论(0编辑  收藏  举报