質問編集履歴

1

pipが実行できない理由は、そもそもpipをインストールしていないからでした。

2017/12/04 15:56

投稿

bunks
bunks

score30

test CHANGED
@@ -1 +1 @@
1
- pipコマドが使えない
1
+ pipがイストールできない
test CHANGED
@@ -1,10 +1,10 @@
1
- https://qiita.com/KogeTakahiro/items/766f87e0b5c7bf1c9cc9
1
+ https://qiita.com/suzuki_y/items/3261ffa9b67410803443
2
2
 
3
3
  こちらの記事に従って、
4
4
 
5
5
  ```
6
6
 
7
- pip install mecab-python3
7
+ python get-pip.py
8
8
 
9
9
  ```
10
10
 
@@ -12,20 +12,56 @@
12
12
 
13
13
  ```
14
14
 
15
+ Exception:
16
+
15
17
  Traceback (most recent call last):
16
18
 
17
- File "/usr/local/bin/pip", line 7, in <module>
19
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/basecommand.py", line 215, in main
18
20
 
19
- from pip import main
21
+ status = self.run(options, args)
20
22
 
21
- ImportError: No module named pip
23
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/commands/install.py", line 342, in run
22
24
 
23
- BunkiS:mecab Bunki$ wget https://bootstrap.pypa.io/get-pip.py
25
+ prefix=options.prefix_path,
24
26
 
25
- -bash: wget: command not found
27
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/req/req_set.py", line 784, in install
26
28
 
29
+ **kwargs
27
30
 
31
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/req/req_install.py", line 851, in install
32
+
33
+ self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
34
+
35
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/req/req_install.py", line 1064, in move_wheel_files
36
+
37
+ isolated=self.isolated,
38
+
39
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/wheel.py", line 345, in move_wheel_files
40
+
41
+ clobber(source, lib_dir, True)
42
+
43
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/wheel.py", line 287, in clobber
44
+
45
+ ensure_dir(dest) # common for the 'include' path
46
+
47
+ File "/var/folders/mw/mgnjhp791wlb21w8p893yys80000gn/T/tmpiHZyvz/pip.zip/pip/utils/__init__.py", line 83, in ensure_dir
48
+
49
+ os.makedirs(path)
50
+
51
+ File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs
52
+
53
+ makedirs(head, mode)
54
+
55
+ File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs
56
+
57
+ makedirs(head, mode)
58
+
59
+ File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
60
+
61
+ mkdir(name, mode)
62
+
63
+ OSError: [Errno 13] Permission denied: '/Library/Python'
28
64
 
29
65
  ```
30
66
 
31
- どのようにすればエラーを解決し、python3でmecabが使えるようるでしょうか?
67
+ どのようにすればエラーを解決し、pipを正常インストールすことがきるでしょうか?