pip uprading for python anconda

I tried several update operations and finally succeeded.With the following command, the network speed is busy, you have to wait for a long time.

easy_install --upgrade pip

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>pip3 install -i https://pypi.douban.com/simple --upgrade
pip
Looking in indexes: https://pypi.douban.com/simple
Collecting pip
  Downloading https://pypi.doubanio.com/packages/30/db/9e38760b32e3e7f40cce46dd5
fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 1.2MB/s
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\
programdata\\anaconda3\\scripts\\pip3.exe'
Consider using the `--user` option or check the permissions.


C:\Users\Administrator>Could not install packages due to an EnvironmentError: [W
inErro
'Could' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>programdata\\anaconda3\\scripts\\pip3.exe'
The system cannot find the path specified.

C:\Users\Administrator>Consider using the `--user` option or check the permissio
ns.
'Consider' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>pip3 install -i https://pypi.douban.com/simple --upgrade
pip --user
Traceback (most recent call last):
  File "d:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)
  File "d:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\ProgramData\Anaconda3\Scripts\pip3.exe\__main__.py", line 5, in <modu
le>
ModuleNotFoundError: No module named 'pip'

C:\Users\Administrator>pip3 install -i --user https://pypi.douban.com/simple --u
pgrade pip
Traceback (most recent call last):
  File "d:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)
  File "d:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\ProgramData\Anaconda3\Scripts\pip3.exe\__main__.py", line 5, in <modu
le>
ModuleNotFoundError: No module named 'pip'

C:\Users\Administrator>
C:\Users\Administrator>pip install pip -U
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>pip config set global.index-url https://pypi.tuna.tsinghu
a.edu.cn/simple
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>pip install pip -U --user
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>python -m ensurepip
Looking in links: C:\Users\ADMINI~1\AppData\Local\Temp\tmp8p9gosny
Requirement already satisfied: setuptools in d:\programdata\anaconda3\lib\site-p
ackages (40.2.0)
Collecting pip
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: pip
Successfully installed pip-10.0.1

C:\Users\Administrator>pip -version
'pip' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>python
Python 3.7.0 (default, Aug 14 2018, 19:12:50) [MSC v.1900 32 bit (Intel)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\Administrator>pip3 install selenium
Collecting selenium
  Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13
e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (
904kB)
    100% |████████████████████████████████| 911kB 11kB/s
Requirement already satisfied: urllib3 in d:\programdata\anaconda3\lib\site-pack
ages (from selenium) (1.23)
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: selenium
Successfully installed selenium-3.141.0
You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Administrator>pip3 --version
pip 10.0.1 from d:\programdata\anaconda3\lib\site-packages\pip (python 3.7)

C:\Users\Administrator>$ pip3 install --upgrade pip
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>$ pip3 install --upgrade pip
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>$ pip3 install --upgrade pip
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>pip3 install --upgrade pip
ERROR: To modify pip, please run the following command:
d:\programdata\anaconda3\python.exe -m pip install --upgrade pip
You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Administrator>easy_install --upgrade pip
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46
dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl#sha256=34
0a0ba40fdeb16413914c0fcd8e0b4ebb0bf39a900ec80e11c05d836c05103f
Best match: pip 19.2.3
Processing pip-19.2.3-py2.py3-none-any.whl
Installing pip-19.2.3-py2.py3-none-any.whl to d:\programdata\anaconda3\lib\site-
packages
Adding pip 19.2.3 to easy-install.pth file
Installing pip-script.py script to D:\ProgramData\Anaconda3\Scripts
Installing pip.exe script to D:\ProgramData\Anaconda3\Scripts
Installing pip.exe.manifest script to D:\ProgramData\Anaconda3\Scripts
Installing pip3-script.py script to D:\ProgramData\Anaconda3\Scripts
Installing pip3.exe script to D:\ProgramData\Anaconda3\Scripts
Installing pip3.exe.manifest script to D:\ProgramData\Anaconda3\Scripts
Installing pip3.7-script.py script to D:\ProgramData\Anaconda3\Scripts
Installing pip3.7.exe script to D:\ProgramData\Anaconda3\Scripts
Installing pip3.7.exe.manifest script to D:\ProgramData\Anaconda3\Scripts

Installed d:\programdata\anaconda3\lib\site-packages\pip-19.2.3-py3.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

C:\Users\Administrator>^D^Z^Axc^Dacls
' ' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>pip3 --version
pip 19.2.3 from d:\programdata\anaconda3\lib\site-packages\pip-19.2.3-py3.7.egg\
pip (python 3.7)

C:\Users\Administrator>pip3 install selenium
Requirement already satisfied: selenium in d:\programdata\anaconda3\lib\site-pac
kages (3.141.0)
Requirement already satisfied: urllib3 in d:\programdata\anaconda3\lib\site-pack
ages (from selenium) (1.23)

C:\Users\Administrator>python
Python 3.7.0 (default, Aug 14 2018, 19:12:50) [MSC v.1900 32 bit (Intel)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import selenium
>>> exit()

C:\Users\Administrator>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值