Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python IOError:[Errno 13]权限被拒绝:在OSGeo4W Shell中安装pandas时_Python_Pandas_Installation_Osgeo - Fatal编程技术网

Python IOError:[Errno 13]权限被拒绝:在OSGeo4W Shell中安装pandas时

Python IOError:[Errno 13]权限被拒绝:在OSGeo4W Shell中安装pandas时,python,pandas,installation,osgeo,Python,Pandas,Installation,Osgeo,我已经用以管理员身份运行的方式实例化了osgeo4w,但它仍然拒绝授予我权限。 我正在尝试在Quantum GIS 2.8上安装pandas,我使用pip命令安装了sklearn,安装成功 但当我尝试安装pandas时,会出现如下错误: C:\Windows\System32>pip install pandas Collecting pandas C:\PROGRA~1\QGISWI~1\apps\Python27\lib\site-packages\pip\_ven

我已经用以管理员身份运行的方式实例化了osgeo4w,但它仍然拒绝授予我权限。 我正在尝试在Quantum GIS 2.8上安装pandas,我使用pip命令安装了sklearn,安装成功

但当我尝试安装pandas时,会出现如下错误:

  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.18升级到0.20时,我遇到了同样的问题
pip安装--升级pandas

问题:numpy和pandas安装程序希望编写已存在于../site packages/numpy和../site packages/pandas文件夹中的较新文件

出于某种原因,shutil无法以“wb”模式打开这些文件

虽然满足了要求
numpy>=1.7.0
,但使用“-upgrade”也可以升级numpy

解决方案:

为了避免
IO错误:[Errno 13]权限被拒绝:…
,请卸载numpy和pandas,然后继续重新安装(numpy是第一个):

如果有人(像我一样)觉得这篇文章有用

在将熊猫从0.18升级到0.20时,我遇到了同样的问题
pip安装--升级pandas

问题:numpy和pandas安装程序希望编写已存在于../site packages/numpy和../site packages/pandas文件夹中的较新文件

出于某种原因,shutil无法以“wb”模式打开这些文件

虽然满足了要求
numpy>=1.7.0
,但使用“-upgrade”也可以升级numpy

解决方案:

为了避免
IO错误:[Errno 13]权限被拒绝:…
,请卸载numpy和pandas,然后继续重新安装(numpy是第一个):

    pip uninstall numpy
    pip install numpy
    pip uninstall pandas
    pip install pandas