解决方案:在jupyter notebook环境下安装不了numpy

文章目录


一、现象

平台:autodl

镜像:PyTorch 2.0.0 Python 3.8(ubuntu20.04) Cuda 11.8

GPU:RTX 4090(24GB) * 1

CPU:12 vCPU Intel® Xeon® Platinum 8352V CPU @ 2.10GHz

内存:90GB

安装numpy环境,发现执行下面的命令行都不行

python 复制代码
# pip install numpy==1.9.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/
# ! pip install numpy==1.9.0 -i http://pypi.douban.com/simple/
! pip install numpy==1.9.0 -i http://mirrors.aliyun.com/pypi/simple/

二、解决方案

得执行以下这行命令才可以

python 复制代码
conda install numpy
相关推荐
2601_967979122 天前
简单学Python——NumPy库6——数值计算1——累加和累乘
数值计算·numpy·数组·累加·累乘
LiaoWL1232 天前
从零搭一个 RAG 知识库(二):换上语义 Embedding——BGE 实测与阈值重校准
python·大模型·numpy·embedding·向量检索·rag
LiaoWL1236 天前
NumPy 入门实战(二):向量化与余弦相似度——从 ndarray 到 Embedding
python·numpy·embedding
郝学胜-神的一滴7 天前
LangChain Skill 实现(渐进披露 On-Demand Skill,LangChain 官方 Deep Agent Skill 模式)
开发语言·python·langchain·numpy
2601_9679801111 天前
Python中flatten( )函数及函数用法详解
python·numpy·数组操作·flatten函数·列表处理
郝学胜-神的一滴12 天前
AI 编程智能体 27:吃透MCP通信机制
人工智能·python·langchain·wpf·numpy·scikit-learn
aifannihao14 天前
AI 学习第 5 课:手推逻辑回归与交叉熵,L2 把可分数据的权重按住
人工智能·机器学习·逻辑回归·numpy·学习路线
2601_9679873715 天前
图灵星环:Python NumPy数组的维度压缩squeeze删除单维度
机器学习·numpy·数据预处理·数组处理·维度压缩
别问!问就是全会17 天前
Jupyter Notebook 安装包下载|单元格分块运行,图表直接内嵌
ide·python·其他·jupyter
ljt272496066121 天前
Python笔记(十一)--Numpy(一)
笔记·python·numpy