2016-03-25 86 views
1

我已經以管理員身份運行osgeo4w,但它仍然允許我拒絕Permission。 我想在Quantum GIS 2.8上安裝熊貓,我已經用pip命令安裝了sklearn,並安裝成功。IOError:[Errno 13] Permission denied:在OSGeo4W Shell中安裝熊貓時

但是,當我試圖安裝熊貓它給出了錯誤如下:

C:\Windows\System32>pip install pandas 
    Collecting pandas 
    C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. 
     SNIMissingWarning 
    C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
     InsecurePlatformWarning 
     Using cached pandas-0.18.0-cp27-cp27m-win_amd64.whl 
    Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:\progra~1\qgiswi~1\apps\python27\lib\site-packages\pytz-2012j-py2.7.egg (from pandas) 
    Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\osgeo4~1\apps\python27\lib\site-packages\python_dateutil-2.1-py2.7.egg (from pandas) 
    Collecting numpy>=1.7.0 (from pandas) 
     Using cached numpy-1.10.4-cp27-none-win_amd64.whl 
    Requirement already satisfied (use --upgrade to upgrade): six in c:\osgeo4~1\apps\python27\lib\site-packages\six-1.3.0-py2.7.egg (from python-dateutil->pandas) 
    Installing collected packages: numpy, pandas 
Exception: 
Traceback (most recent call last): 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\basecommand.py", line 209, in main 
    status = self.run(options, args) 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\commands\install.py", line 317, in run 
    prefix=options.prefix_path, 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\req\req_set.py", line 732, in install 
    **kwargs 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\req\req_install.py", line 835, in install 
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\req\req_install.py", line 1030, in move_wheel_files 
    isolated=self.isolated, 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\wheel.py", line 344, in move_wheel_files 
    clobber(source, lib_dir, True) 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\wheel.py", line 322, in clobber 
    shutil.copyfile(srcfile, destfile) 
    File "C:\PROGRA~1\QGISWI~1\apps\Python27\lib\shutil.py", line 83, in copyfile 
    with open(dst, 'wb') as fdst: 
IOError: [Errno 13] Permission denied: 'C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\Lib\\site-packages\\numpy\\core\\multiarray.pyd' 

對此有任何解決方案?

回答

0

萬一有人(像我)找到這個職位很有用...

我從0.18升級大熊貓何時0.20做 pip install --upgrade pandas時有同樣的問題。

問題:numpy和pandas安裝程序想要編寫已存在於../site-packages/numpy和../site-packages/pandas文件夾中的較新文件。

由於某些原因,shutil無法以'wb'模式打開這些文件。

雖然滿足要求numpy>=1.7.0,但使用「--upgrade」也會導致numpy升級。

解決方案:

爲了避免IO Error: [Errno 13] Permission denied: ...,同時卸載numpy的和熊貓,然後用重新安裝(numpy的是第一)追求:

pip uninstall numpy 
    pip install numpy 
    pip uninstall pandas 
    pip install pandas 
相關問題