网站建设氺金手指排名11,株洲网站建设优化企业,海南app开发,智能seo系统在开发环境中同时安装多个 Python 版本是一种常见的情况#xff0c;本文将介绍在Python2.7和Python3.6共存的环境中#xff0c;如何使用 Python 3.6 的 pip 安装其他包#xff08;如scikit-learn#xff09;。
步骤#xff1a; 确定 Python 3.6 的 pip 路径#xff1a; …在开发环境中同时安装多个 Python 版本是一种常见的情况本文将介绍在Python2.7和Python3.6共存的环境中如何使用 Python 3.6 的 pip 安装其他包如scikit-learn。
步骤 确定 Python 3.6 的 pip 路径 首先需要找到 Python 3.6 的 pip 路径例如 C:\Users\Jack\AppData\Local\Programs\Python\Python36\Scripts\pip使用 Python 3.6 的 pip 安装新的包例如: scikit-learn 在命令提示符中运行以下命令来使用 Python 3.6 的 pip 安装 scikit-learn C:\Users\Jack\AppData\Local\Programs\Python\Python36\Scripts\pip install scikit-learn验证安装 安装完成后可以在 Python 3.6 的环境中尝试导入 scikit-learn 库先进入Python 3.6的交互式环境 C:\Users\Jack\AppData\Local\Programs\Python\Python36\python然后在 Python 交互式环境中尝试导入 scikit-learn import sklearn如果没有报错说明 scikit-learn 已成功安装。