2016-06-17 45 views
0

我試圖在python3.4下安裝一個包含python3.4 -m pip install jieba的包,而我已經有了2.7。在python下安裝包時出現錯誤3

然後,我有這個錯誤

> Collecting jieba 
    Using cached jieba-0.38.zip 
Building wheels for collected packages: jieba 
Exception: 
Traceback (most recent call last): 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/basecommand.py", line 223, in main 
    status = self.run(options, args) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/commands/install.py", line 293, in run 
    wb.build(autobuilding=True) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/wheel.py", line 756, in build 
    ensure_dir(output_dir) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/utils/__init__.py", line 70, in ensure_dir 
    os.makedirs(path) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py", line 227, in makedirs 
    makedirs(head, mode, exist_ok) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py", line 227, in makedirs 
    makedirs(head, mode, exist_ok) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py", line 227, in makedirs 
    makedirs(head, mode, exist_ok) 
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py", line 237, in makedirs 
    mkdir(name, mode) 
PermissionError: [Errno 13] Permission denied: '/Users/apple/Library/Caches/pip/wheels/fd' 

回答

0

我得到了它,一個簡單的方法來做到這一點是在python3.4

$ curl -O https://bootstrap.pypa.io/get-pip.py 
$ sudo python3.4 get-pip.py 
+0

你在你的例子在3.2安裝它安裝點子。 –

+0

thx!現在改變了 – Lucia

相關問題