win conda安装pip rawpy 更新pip

问题:

安装包时候需要对pip 更新

pip install rawpy
报错

You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

解决:

运行

python -m pip install --upgrade pip

并不能安装,同样的错误。
所以可能是需要通过conda安装

打开conda navigator
发现pip 只有9.0.1版本

conda install pip
两种方式仍然是9.0.1版本。

所以要更新conda

conda install mingw libpython
Fetching package metadata .....
Solving package specifications: .

Package plan for installation in environment I:\ananconda:

The following NEW packages will be INSTALLED:

    libpython: 2.0-py36_0       https://mirrors.ustc.edu.cn/anaconda/pkgs/free
    mingw:     4.7-1            https://mirrors.ustc.edu.cn/anaconda/pkgs/free

The following packages will be SUPERSEDED by a higher-priority channel:

    conda-env: 2.6.0-h36134e3_1 defaults                                       --> 2.6.0-0 https://mirrors.ustc.edu.cn/anaconda/pkgs/free

Proceed ([y]/n)? Y

conda-env-2.6. 100% |###############################| Time: 0:00:00  27.65 kB/s
mingw-4.7-1.ta 100% |###############################| Time: 0:00:28   2.04 MB/s
libpython-2.0- 100% |###############################| Time: 0:00:00   1.33 MB/s

再次执行
python -m pip install --upgrade pip

Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 94kB/s
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-18.1

再次安装rawpy

pip install rawpy
就不报错了

Collecting rawpy
  Downloading https://files.pythonhosted.org/packages/42/a8/424b59af7e9ced2a193941d39f2d9bd8049d1b92cfc704ef50657eb547fb/rawpy-0.13.1-cp36-cp36m-win_amd64.whl (541kB)
    100% |████████████████████████████████| 542kB 146kB/s
Requirement already satisfied: numpy in i:\ananconda\lib\site-packages (from rawpy) (1.13.3)
Installing collected packages: rawpy
Successfully installed rawpy-0.13.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值