想学习一下TensorFlow,导入网上源码,发现sklearn一直引入失败。
直接在命令下用
pip install -U NumPy
pip install -U Scipy
pip install -U scikit-learn
用pip list也能发现scikit扩展,直接在python命令也可以正常引入import sklearn,但在项目中一直无法正常引入扩展。
项目中的引入方法:..>
打开PyCharm中的Settings –>Project:BasicPythonPrograms–>Project Interpreter–>在图像的右上角有一个添加点击搜索–>Install Packages即可