给指定Python版本安装指定版本库的办法

pip3.5 tensorflow==1.4

给Python3.5装TF1.4版本库

 

pip3.7 numpy

给Python3.7装numpy库

直接调用pip3.5安装库

appledeMBP:~ apple$ pip3.5 install numpy
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (1.15.4)

直接调用pip3.5删除
appledeMBP:~ apple$ pip3.5 uninstall numpy
Uninstalling numpy-1.15.4:
  Would remove:
    /Library/Frameworks/Python.framework/Versions/3.5/bin/f2py
    /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy-1.15.4.dist-info/*
    /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/*
Proceed (y/n)? y
  Successfully uninstalled numpy-1.15.4
appledeMBP:~ apple$ 

认识你是我们的缘分,同学,等等,学习人工智能,记得关注我。

 

给指定Python版本安装指定版本库的办法_第1张图片

微信扫一扫
关注该公众号

《湾区人工智能》

你可能感兴趣的:(python研究)