2015-01-09 34 views
0

我很難得到pptx設置與enthought canopy(我正在使用Windows 8)一起工作。安裝pptx通過pip爲enthought冠層錯誤

在使用pip進行安裝期間,會發生以下異常。請注意,在發生異常之前卸載Pillow。這是我能想到的唯一出錯的東西。

...running install_egg_info 
    running egg_info 
    writing requirements to python_pptx.egg-info\requires.txt 
    writing python_pptx.egg-info\PKG-INFO 
    writing top-level names to python_pptx.egg-info\top_level.txt 
    writing dependency_links to python_pptx.egg-info\dependency_links.txt 
    warning: manifest_maker: standard file '-c' not found 

    reading manifest file 'python_pptx.egg-info\SOURCES.txt' 
    reading manifest template 'MANIFEST.in' 
    writing manifest file 'python_pptx.egg-info\SOURCES.txt' 
    Copying python_pptx.egg-info to C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\Lib\site-packages\python_pptx-0.5.6-py2.7.egg-info 
    running install_scripts 
    writing list of installed files to 'c:\users\dirkh_000\appdata\local\temp\pip-guwbzu-record\install-record.txt' 
    Found existing installation: Pillow 1.7.6 
    Uninstalling Pillow: 
     Removing file or directory c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilconvert.py 
     Removing file or directory c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pildriver.py 
     Removing file or directory c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilfile.py 
     Removing file or directory c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilfont.py 
     Removing file or directory c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilprint.py 
     Successfully uninstalled Pillow 
    Rolling back uninstall of Pillow 
    Replacing c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilconvert.py 
    Replacing c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pildriver.py 
    Replacing c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilfile.py 
    Replacing c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilfont.py 
    Replacing c:\users\dirkh_000\appdata\local\enthought\canopy\user\scripts\pilprint.py 
Cleaning up... 
    Removing temporary dir C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\build... 
     Exception: 
    Traceback (most recent call last): 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\basecommand.py", line 122, in main 
     status = self.run(options, args) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\commands\install.py", line 283, in run 
     requirement_set.install(install_options, global_options, root=options.root_path) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\req.py", line 1435, in install 
     requirement.install(install_options, global_options, *args, **kwargs) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\req.py", line 671, in install 
     self.move_wheel_files(self.source_dir, root=root) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\req.py", line 901, in move_wheel_files 
     pycompile=self.pycompile, 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\wheel.py", line 215, in move_wheel_files 
     clobber(source, lib_dir, True) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\wheel.py", line 209, in clobber 
     shutil.copy2(srcfile, destfile) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\lib\shutil.py", line 130, in copy2 
     copyfile(src, dst) 
     File "C:\Users\dirkh_000\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1.1975.win-x86_64\lib\shutil.py", line 83, in copyfile 
     with open(dst, 'wb') as fdst: 
    IOError: [Errno 13] Permission denied: u'C:\\Users\\dirkh_000\\AppData\\Local\\Enthought\\Canopy\\User\\Lib\\site-packages\\PIL\\_imaging.pyd' 

完整的調試日誌可根據要求提供。 鍵入import pptx在樹冠目前得到:ImportError: No module named _util

我想這只是一個不匹配的目錄的問題,但我不知道究竟如何檢查,如果這是我可以重現的時候這個問題林冠情況下

回答

2

運行,但不是當Canopy是不是運行。

推定原因:在使用時無法替換_imaging.pyd文件(該文件是Windows .DLL)。

因此退出Canopy並重試。

對於其他使用PIL的包會有什麼後果,我不知道。

+1

重新啓動Canopy不起作用。以管理員身份運行安裝不起作用。但是,以管理員身份運行安裝程序,然後重新啓動Canopy也行。 ¯\ _(ツ)_ /¯ – Frikster 2015-01-12 02:05:10

+1

@DirkHaupt不要重新啓動Canopy。 QUIT Canopy,使用pip安裝,然後啓動Canopy。 – camdenl 2015-10-30 18:16:28