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

边栏推荐
- Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
- 七夕节赚徽章拉
- Paparazzi: Surface Editing by way of Multi-View Image Processing
- leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
- BI业务分析思维:现金流量风控分析(二)信用、流动和投资风险
- bytebuffer 内部结构
- Mysql's redo log detailed explanation
- Spark Basics [Introduction, Getting Started with WordCount Cases]
- [MRCTF2020]PYWebsite
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
猜你喜欢

Detailed and comprehensive postman interface testing practical tutorial

开发属于自己的node包

阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿

Swing有几种常用的事件处理方式?如何监听事件?

The most effective seven performance testing techniques of software testing techniques

How to solve the three major problems of bank data collection, data supplementary recording and index management?

Ice Scorpion V4.0 attack, security dog products can be fully detected

bytebuffer 使用demo
![[GYCTF2020]EasyThinking](/img/40/973411c69d1e4766d22f6a4a7c7c01.png)
[GYCTF2020]EasyThinking

Index Mysql in order to optimize paper 02 】 【 10 kinds of circumstances and the principle of failure
随机推荐
Ffmpeg - sources analysis
Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
JeeSite新建报表
ffmpeg pixel format basics
DEJA_VU3D - Cesium功能集 之 056-智图Arcgis地图纠偏
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
Use CH341A to program external Flash (W25Q16JV)
bytebuffer use demo
UE4 第一人称角色模板 添加蹲伏功能
开发属于自己的node包
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
36-Jenkins-Job迁移
Android interview question - how to write with his hands a non-blocking thread safe queue ConcurrentLinkedQueue?
Event parse tree Drain3 usage and explanation
905. Interval selection
GC Gaode coordinate and Baidu coordinate conversion
10 years of testing experience, worthless in the face of the biological age of 35
[GYCTF2020]EasyThinking
大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
markdown如何换行——md文件