ITeye博客

python自学笔记

ybds · 2021-06-11 23:33 · python 自学 笔记 · 编程语言 · Markdown

1.python换国内源,我使用的清华源

  1. 阿里云 http://mirrors.aliyun.com/pypi/simple/
  2. 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
  3. 豆瓣(douban) http://pypi.douban.com/simple/
  4. 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
  5. 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

临时换元 pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久换源 通过命令

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

 

2.升级pip

显示目前版本 pip --version

升级 python.exe -m pip install --upgrade pip

 

3.安装模块 pip install 模块名称 

安装指定版本模块pip install 'Markdown<2.0'  ;  pip install 'Markdown>2.0,<2.0.3

4.卸载模块 pip uninstall 模块

5.更新模块 pip install --upgrade SomePackage

6.显示模块文件 pip show --files SomePackage

7.查看已安装的模块,加参数是看模块版本  pip list --outdated

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。