当前位置:网站首页>关于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不会报错即可,如下就安装成功啦啦啦啦啦~
边栏推荐
- No regrets, the appium automation environment is perfectly built
- 阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿
- The first performance test practice, there are "100 million" a little nervous
- DNS被劫持如何处理?
- Summary of common methods of arrays
- Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
- ffmpeg enumeration decoders, encoders analysis
- Qixi Festival earn badges
- UI自动化测试 App的WebView页面中,当搜索栏无搜索按钮时处理方法
- [BJDCTF2020]EasySearch
猜你喜欢
多列属性column元素的可见性:display、visibility、opacity、垂直对齐方式:vertical-align、z-index 越大越显示在上层
Hard power or soft power, which is more important to testers?
[CISCN2019 South China Division]Web11
Shell script: for loop and the while loop
Use CH341A to program external Flash (W25Q16JV)
Static method to get configuration file data
token, jwt, oauth2, session parsing
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
【8.4】代码源 - 【数学】【历法】【删库】【不朴素的数列(Bonus)】
MySql的索引学习和使用;(本人觉得足够详细)
随机推荐
【8.2】代码源 - 【货币系统】【硬币】【新年的问题(数据加强版)】【三段式】
UE4 在游戏运行时更改变量 (通过鼠标滑轮来更改第一人称角色的最大行走速度)
[MRCTF2020] PYWebsite
public static
List asList(T... a) What is the prototype? 数据库设计的酸(ACID)碱(BASE)原则
1007 Climb Stairs (贪心 | C思维)
Mathematics - Properties of Summation Symbols
DNS被劫持如何处理?
How to wrap markdown - md file
How do newcomers get started and learn software testing?
Queue Topic: Recent Requests
2022 Hangzhou Electric Multi-School 1st Game
【树莓派】树莓派调光
【Mysql进阶优化篇02】索引失效的10种情况及原理
The first performance test practice, there are "100 million" a little nervous
Fifteen. Actual combat - MySQL database building table character set and collation
DEJA_VU3D - Cesium功能集 之 058-高德地图纠偏
Summary of common methods of arrays
The most comprehensive exam questions for software testing engineers in 2022
YYGH-13-Customer Service Center