質問編集履歴

3

詰まったところの前後の説明も加えた

2021/02/26 18:03

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

test CHANGED
File without changes
test CHANGED
@@ -10,35 +10,29 @@
10
10
 
11
11
  ```
12
12
 
13
- % pip3 install mkdocs
13
+ % python3 -m pip install mkdocs
14
-
15
- WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
16
-
17
- Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
18
-
19
- To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
20
14
 
21
15
  Defaulting to user installation because normal site-packages is not writeable
22
16
 
23
17
  Requirement already satisfied: mkdocs in ./Library/Python/3.7/lib/python/site-packages (1.1.2)
24
18
 
19
+ Requirement already satisfied: click>=3.3 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (7.1.2)
20
+
25
21
  Requirement already satisfied: PyYAML>=3.10 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (5.3.1)
22
+
23
+ Requirement already satisfied: Jinja2>=2.10.1 in /Library/Python/3.7/site-packages (from mkdocs) (2.11.2)
24
+
25
+ Requirement already satisfied: lunr[languages]==0.5.8 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (0.5.8)
26
26
 
27
27
  Requirement already satisfied: livereload>=2.5.1 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (2.6.3)
28
28
 
29
- Requirement already satisfied: Jinja2>=2.10.1 in /Library/Python/3.7/site-packages (from mkdocs) (2.11.2)
30
-
31
29
  Requirement already satisfied: Markdown>=3.2.1 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (3.2.1)
32
-
33
- Requirement already satisfied: lunr[languages]==0.5.8 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (0.5.8)
34
-
35
- Requirement already satisfied: click>=3.3 in ./Library/Python/3.7/lib/python/site-packages (from mkdocs) (7.1.2)
36
30
 
37
31
  Requirement already satisfied: tornado>=5.0 in /Library/Python/3.7/site-packages (from mkdocs) (6.0.4)
38
32
 
33
+ Requirement already satisfied: six>=1.11.0 in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (from lunr[languages]==0.5.8->mkdocs) (1.12.0)
34
+
39
35
  Requirement already satisfied: future>=0.16.0 in ./Library/Python/3.7/lib/python/site-packages (from lunr[languages]==0.5.8->mkdocs) (0.18.2)
40
-
41
- Requirement already satisfied: six>=1.11.0 in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (from lunr[languages]==0.5.8->mkdocs) (1.12.0)
42
36
 
43
37
  Requirement already satisfied: nltk>=3.2.5 in ./Library/Python/3.7/lib/python/site-packages (from lunr[languages]==0.5.8->mkdocs) (3.5)
44
38
 
@@ -46,11 +40,11 @@
46
40
 
47
41
  Requirement already satisfied: setuptools>=36 in ./Library/Python/3.7/lib/python/site-packages (from Markdown>=3.2.1->mkdocs) (46.1.3)
48
42
 
49
- Requirement already satisfied: regex in ./Library/Python/3.7/lib/python/site-packages (from nltk>=3.2.5->lunr[languages]==0.5.8->mkdocs) (2020.10.28)
43
+ Requirement already satisfied: joblib in ./Library/Python/3.7/lib/python/site-packages (from nltk>=3.2.5->lunr[languages]==0.5.8->mkdocs) (0.16.0)
50
44
 
51
45
  Requirement already satisfied: tqdm in ./Library/Python/3.7/lib/python/site-packages (from nltk>=3.2.5->lunr[languages]==0.5.8->mkdocs) (4.51.0)
52
46
 
53
- Requirement already satisfied: joblib in ./Library/Python/3.7/lib/python/site-packages (from nltk>=3.2.5->lunr[languages]==0.5.8->mkdocs) (0.16.0)
47
+ Requirement already satisfied: regex in ./Library/Python/3.7/lib/python/site-packages (from nltk>=3.2.5->lunr[languages]==0.5.8->mkdocs) (2020.10.28)
54
48
 
55
49
  % mkdocs --version
56
50
 
@@ -68,6 +62,42 @@
68
62
 
69
63
   バージョン 11.2.1
70
64
 
71
- ・python 3.7.3
65
+ ・python 3.7.3(デフォルトではpython 2.7.16)
72
66
 
73
67
  ・pipコマンドについて、上記では「pip3 install」を使っているが、普段はWARNINGの内容に従って「python3 -m pip install」を使っている。これが問題なのでは?と思い「pip3 install」にしたが、WARNINGが表示されるようになっただけでその他のメッセージは変わらなかった。
68
+
69
+
70
+
71
+
72
+
73
+ ### 試したこと
74
+
75
+ ・ターミナルのデフォルトのpythonが2系だったのを3系に直して「pip3 install mkdocs」を試した。
76
+
77
+ ```
78
+
79
+ % alias python=/usr/bin/python3
80
+
81
+ % alias pip=/usr/bin/pip3
82
+
83
+ ```
84
+
85
+ 結果は下のように、「python3 -m pip install」使えというWARNINGが表示されるようになったが、その後のメッセージは変わらなかった。
86
+
87
+ ```
88
+
89
+ % pip3 install mkdocs
90
+
91
+ WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
92
+
93
+ Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
94
+
95
+ To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
96
+
97
+ Defaulting to user installation because normal site-packages is not writeable
98
+
99
+ Requirement already satisfied: mkdocs in ./Library/Python/3.7/lib/python/site-packages (1.1.2)
100
+
101
+ ...(以下、「発生している問題」と同じメッセージになる)
102
+
103
+ ```

2

pipコマンドについて説明追加

2021/02/26 18:03

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ```
12
12
 
13
- % python3 -m pip install mkdocs
13
+ % pip3 install mkdocs
14
14
 
15
15
  WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
16
16
 
@@ -69,3 +69,5 @@
69
69
   バージョン 11.2.1
70
70
 
71
71
  ・python 3.7.3
72
+
73
+ ・pipコマンドについて、上記では「pip3 install」を使っているが、普段はWARNINGの内容に従って「python3 -m pip install」を使っている。これが問題なのでは?と思い「pip3 install」にしたが、WARNINGが表示されるようになっただけでその他のメッセージは変わらなかった。

1

pipコマンドですが、普段は修正後の方を使っています

2021/02/26 17:34

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ```
12
12
 
13
- % pip3 install mkdocs
13
+ % python3 -m pip install mkdocs
14
14
 
15
15
  WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
16
16