回答編集履歴
2
追記
test
CHANGED
@@ -21,3 +21,39 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
`--force-reinstall`オプションが必要(`pip --force-reinstall 〜`)なのかもしれません。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
----
|
28
|
+
|
29
|
+
動かしているプログラムのディレクトリで
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
python -c 'import urllib3, chardet; print(urllib3.__file__); print(chardet.__file__)'
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
を実行した結果のパスが(冒頭pythonは適宜置き換えてください)
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
pip -V
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
の基準ディレクトリと異なっていると推測します。
|
46
|
+
|
47
|
+
そうならその最新版のurllib3とchardetを削除(念のためを考えるとどこかに移動)するのがいいでしょう。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
もうひとつの可能性はpythonとpipが全然違う場所を見るようになっていることで、その確認は
|
52
|
+
|
53
|
+
```
|
54
|
+
|
55
|
+
python -c 'import sys; print(sys.base_prefix)'
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
と`pip -V`の結果を見比べるのがいいでしょう。
|
1
追記
test
CHANGED
@@ -13,3 +13,11 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
[https://github.com/requests/requests/blob/v2.21.0/requests/__init__.py#L49](https://github.com/requests/requests/blob/v2.21.0/requests/__init__.py#L49)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
----
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
`--force-reinstall`オプションが必要(`pip --force-reinstall 〜`)なのかもしれません。
|