当前位置:网站首页>关于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不会报错即可,如下就安装成功啦啦啦啦啦~

边栏推荐
- Acid (ACID) Base (BASE) Principles for Database Design
- Bosses, I noticed that a mysql CDC connector parameters scan. The incremental. Sna
- Android Practical Development - Kotlin Tutorial (Introduction - Login Function Implementation 3.3)
- MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
- ffmpeg pixel format basics
- Spark基础【介绍、入门WordCount案例】
- [MRCTF2020] PYWebsite
- bytebuffer put flip compact clear 方法演示
- Paparazzi: Surface Editing by way of Multi-View Image Processing
- Walter talked little knowledge | "remote passthrough" that something
猜你喜欢
随机推荐
Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
Summary of common methods of arrays
DNS被劫持如何处理?
token、jwt、oauth2、session解析
905. Interval selection
Defect detection (image processing part)
Dameng 8 database export and import
[CISCN2019 华东南赛区]Web11
What is the difference between SAP ERP and ORACLE ERP?
In the WebView page of the UI automation test App, the processing method when the search bar has no search button
Four-digit display header design
Getting Started with Kubernetes Networking
MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
【8.1】代码源 - 【第二大数字和】【石子游戏 III】【平衡二叉树】
数据库设计的酸(ACID)碱(BASE)原则
[MRCTF2020]PYWebsite
七夕节赚徽章拉
UE4 opens doors with overlapping events
GC Gaode coordinate and Baidu coordinate conversion
Haproxy搭建Web群集





![[Software testing] unittest framework for automated testing](/img/80/caedd5cf6dd61c9d75475866613cac.png)



