编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

没有pip怎么办?(没有pip命令)

wxchong 2024-07-26 23:08:10 开源技术 18 ℃ 0 评论

Octave带了mingw64。gcc, perl, python, ffmpeg等一大堆程序都有现成的。可是没有pip。

输入命令:

python -m ensurepip --upgrade

即可安装pip。

然后使用国内镜像源。我们用的是"Linux",所以要添加或修改~/.pip/pip.conf:

[global]

index-url = http://mirrors.aliyun.com/pypi/simple/

trusted-host =

mirrors.aliyun.com

我们可以:

notepad pip.conf

explorer .

同一个python,既可以在cmd里运行,又可以在bash+mintty里运行。

http源还有:http://pypi.mirrors.ustc.edu.cn/simple/

那些用https的是不是钱多得不耐烦?

更多信息请搜索:

  • pip documentation Installation ensurepip get-pip.py
  • pip documentation Configuration trusted-host

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表