当前位置:网站首页>关于sklearn库的安装
关于sklearn库的安装
2022-08-05 04:08:00 【米卡粒】
对于安装sklearn真的是什么问题都被我遇到了
例如pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.遇到了
这种也遇到了Requirement already satisfied: numpy in c:\users\yjq\appdata\roaming\python\python310\site-packages (1.22.2)
还有各种细节的问题,甚至用管理员运行都不行,依旧会报错,但是随着查阅的资料以及不断地试错才发现我只是犯了一个细节性的错误
在安装sklearn时我们都知道要先安装
- Numpy库
- Scipy库
- matplotlib库
而我出现的错误就是一直卡在这个地方,例如scipy

这里我们可以看到有非常多的 scipy版本,但是究竟应该安装什么版本呢,在我无知的操作下,毅然决然的选择了最新的版本进行安装,而这个,就是我打错特错的根源
首先应该选择与电脑配置一样的字节,然后,还要选择与自己电脑版本一样的pycharm版本,那么接下来的操作就会非常的简单

successfully!!!!!!!!!!!!!!yeah!!!!!!!!!
but。。。。。。
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in c:\users\余佳琪\appdata\roaming\python\python310\site-packages (1.22.2)
这熟悉的两行字。。。。。。
Defaulting to user installation because normal site-packages is not writeable
这一行的解决办法是用管理员的身份进行运行cmd即可,就会变成如下情况

Requirement already satisfied: numpy in c:\users\yjq\appdata\roaming\python\python310\site-packages (1.22.2)
查阅了一些网上的资料发现是安装的路径不同,于是我们只要换成如下格式:pip install --target=绝对路径 numpy即可安装完成

但是我发现我的电脑有一些小点问题,例如,下载的时候速度会非常的慢,并且电脑会非常的卡,所以需要更加的耐心,即使运行超时,爆红,只要多下载几次就可以安装成功了
之后直接在cmd中pip install sklearn就可以了,再python里import sklearn不会报错即可,如下就安装成功啦啦啦啦啦~

边栏推荐
猜你喜欢

多御安全浏览器新版下载 | 功能优秀性能出众

public static
List asList(T... a) What is the prototype? 
BI业务分析思维:现金流量风控分析(二)信用、流动和投资风险

数据库设计的酸(ACID)碱(BASE)原则

bytebuffer internal structure

Defect detection (image processing part)

UE4 通过与其它Actor互动开门

四位数显表头设计

Detailed and comprehensive postman interface testing practical tutorial

UI自动化测试 App的WebView页面中,当搜索栏无搜索按钮时处理方法
随机推荐
[MRCTF2020] Ezpop (detailed)
Walter talked little knowledge | "remote passthrough" that something
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
2022软件测试工程师最全面试题
Mathematics - Properties of Summation Symbols
35岁的软件测试工程师,月薪不足2W,辞职又怕找不到工作,该何去何从?
[CISCN2019 华东南赛区]Web11
bytebuffer internal structure
包拉链不可用,但是是被另一个包。
bytebuffer put flip compact clear 方法演示
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
[SWPU2019]Web1
How to solve the three major problems of bank data collection, data supplementary recording and index management?
Getting Started with Kubernetes Networking
Ice Scorpion V4.0 attack, security dog products can be fully detected
UE4 opens door via interaction (keyboard key)
How to wrap markdown - md file
UE4 为子弹蓝图添加声音和粒子效果
DEJA_VU3D - Cesium功能集 之 057-百度地图纠偏
[8.1] Code Source - [The Second Largest Number Sum] [Stone Game III] [Balanced Binary Tree]