当前位置:首页 > 日记本 > 正文内容

查看linux服务器python版本,以及指定版本安装模块

zhangchap2年前 (2022-01-21)日记本259
whereis python


此命令将列出服务器上所安装的所有版本的Python的路径


python3.7 -m pip list

此命令为查看 3.7版本所安装的模块

python3.6 -m pip install pymysql

此命令为 3.6版本安排模块



分享给朋友:

相关文章

网络编辑工具箱注册ComCtl32.ocx

1.把ComCtl32.ocx放到c:\Windows\SysWOW64,注:需要管理员权限 2.打开C:\Windows\System32 找到 cmd.exe 鼠标右键管理员身份...

python 函数 开启多线程示例

from threading import Thread def readfile(queue:Queue):    &nbs...

python补全网址代码示例

from urllib.parse import urljoin absurl = urljoin(backend,url) #backend:根...

python 随机生成时间戳写入txt文件/运行sql语句

import time from random import randint with open('time.txt', ...

python 发布文章 随机分类(choice)

from random import choice catid = choice([5,6]) #choice 函数从列表中随机提取...

python读取txt文件放到Queue队列

from queue import Queue with open('kw.txt',encoding='utf-8')&nb...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。