2017-09-08 37 views
0

試圖在我的終端上顯示的例外下載使用命令安裝wagtail獲取異常當鶺鴒

Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run 
    prefix=options.prefix_path, 
    File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install 
    **kwargs 
    File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 851, in install 
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 
    File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files 
    isolated=self.isolated, 
    File "/Library/Python/2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files 
    clobber(source, lib_dir, True) 
    File "/Library/Python/2.7/site-packages/pip/wheel.py", line 323, in clobber 
    shutil.copyfile(srcfile, destfile) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile 
    with open(dst, 'wb') as fdst: 
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/OleFileIO_PL.py 

回答

0

答案就在那裏給你看:

IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/OleFileIO_PL.py 

它看起來像你試圖安裝到全球網站包(在Mac上),您沒有寫入權限。

sudo pip install wagtail會做的伎倆,但我會反對的建議。

我強烈建議你爲每個python項目使用python virtual environment

另外,是否有一個特別的原因,你開始一個新的項目與python2而不是python3?

相關問題