unable to upgrade pip version 10.0.1 to 18.0 in cm

2019-07-11 14:11发布

I'm trying to upgrade pip but the below command didn't worked out. Currently, I have pip version 10.0.1 and I want to upgrade it to 18.0

command I tried in cmd:

python -m pip install --upgrade pip

It's showing:

Attribute Error:module 're' has no attribute 'findall'

4条回答
一纸荒年 Trace。
2楼-- · 2019-07-11 14:33

There might be something wrong with your pip instalation

try this:

curl bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
查看更多
神经病院院长
3楼-- · 2019-07-11 14:33

My problem is with my version of pip 9.0, upgrading always fails (I run a MacBook with OSX 10.7.5) showing similar message like this example , If any one had an idea...:

$ python -m pip install --upgrade pip

Requirement already up-to-date: pip in /Library/Python/2.7/site-packages But every time I use pip install, is this:

$ pip install lxml

Collecting lxml

Could not fetch URL https://pypi.python.org/simple/lxml/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping

Could not find a version that satisfies the requirement lxml (from versions: )

No matching distribution found for lxml

查看更多
再贱就再见
4楼-- · 2019-07-11 14:36

Make sure you have exited python and you are back in main Anaconda terminal. Press

exit

to leave python and then run this code

python -m pip install --upgrade pip

or run the commands below;

conda config --add channels conda-forge 
conda update pip
查看更多
地球回转人心会变
5楼-- · 2019-07-11 14:39

If you are in windows and using virtual env then use

(virtual env) c/path>easy_install -U pip

this will update pip inside the virtual env and if you do it outside of virtual env then it should also work there as well.

查看更多
登录 后发表回答