LiyuanHu91的个人博客分享 http://blog.sciencenet.cn/u/LiyuanHu91

博文

Python学习(2)——WSL2中软件安装

已有 320 次阅读 2025-5-9 16:36 |个人分类:计算机使用|系统分类:科研笔记

1、安装

sudo apt install python3

sudo apt install python3-pip

pip3 install bifold

pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install numba -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

sudo apt install python3-tk

sudo apt install tk-dev

2、测试

python3 test.py

【参考资料】

https://www.runoob.com/numpy/numpy-install.html

https://blog.csdn.net/wsygo/article/details/118995447

【注】

(1)bifold为软件名

(2)sudo apt install python3-tk与sudo apt install tk-dev是处理画图问题

(3)添加“-i https://pypi.tuna.tsinghua.edu.cn/simple”是因为国外镜像太慢,故选择清华镜像。



https://wap.sciencenet.cn/blog-3121583-1485094.html

上一篇:WSL2安装及其可视化-Windows11
收藏 IP: 222.171.7.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

全部作者的其他最新博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2025-5-11 11:13

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部