美文网首页
python版本冲突

python版本冲突

作者: 嗯_挺好的 | 来源:发表于2022-03-03 12:19 被阅读0次

    Mac自带的python2版本,在/System/Library/Frameworks/Python.framework/Versions里面
    自己从官网安装的在/Library/Frameworks/Python.framework/里面
    通过homebrew安装的在/usr/local/Cellar/3.7.1/里面
    anaconda安装的在/Users/****(user)/anaconda3里面
    通过pip安装库的时候,要注意:

    1. pip install requests会安装在python2的环境下
    2. pip3 install requests安装在路径优先级高的环境下
    3. 在anaconda下安装需要切换到在anaconda创建的你需要工作的环境中(用source envName activate),然后使用conda install requests来安装所需要的库。
      ————————————————
      原文链接:https://blog.csdn.net/zhijian8912/article/details/88865819

    相关文章

      网友评论

          本文标题:python版本冲突

          本文链接:https://www.haomeiwen.com/subject/ntnyrrtx.html