【问题标题】:Pandas upgrade installation fails熊猫升级安装失败
【发布时间】:2014-11-11 20:19:41
【问题描述】:

我跑

pip install pandas --upgrade 

在我的 Windows 7 电脑上。我目前运行 Pandas 0.12 版。当我收到错误消息时,似乎很难回滚这个版本:

  Can't roll back pandas; was not uninstalled

  Cleaning up...

Removing temporary dir c:\users\svenka~1\appdata\local\temp\pip_build_svenkatesh...

Exception information:
Traceback (most recent call last):
File "C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\commands\install.py", line 241, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\req.py", line 1298, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\req.py", line 625, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\lib\site-packages\pip\util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command C:\Users\svenkatesh\AppData\Local\Enthought\Canopy\User\python.exe -c "import setuptools;__file__='c:\\users\\svenka~1\\appdata\\local\\temp\\pip_build_svenkatesh\\pandas\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\svenka~1\appdata\local\temp\pip-rnlz93-record\install-record.txt --single-version-    externally-managed failed with error code 1 in     c:\users\svenka~1\appdata\local\temp\pip_build_svenkatesh\pandas

如何升级?我应该删除我当前的 Pandas 版本 (v12) 并全新安装 v15 吗?

【问题讨论】:

    标签: python pandas installation


    【解决方案1】:

    我也遇到了 pip 升级的问题,所以对于 Windows,我通常更喜欢这里提供的二进制文件:

    http://www.lfd.uci.edu/~gohlke/pythonlibs/
    

    二进制文件包括 pandas、numpy 和其他很多

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-26
      • 1970-01-01
      • 2021-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-17
      相关资源
      最近更新 更多