gpt4 book ai didi

python - Pandas 升级安装失败

转载 作者:太空宇宙 更新时间:2023-11-04 05:57:34 26 4
gpt4 key购买 nike

我跑

pip install pandas --upgrade 

在我的 Windows 7 电脑上。我目前运行 pandas 版本 .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

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

最佳答案

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

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

二进制文件包括 pandas、numpy 和其他大量文件

关于python - Pandas 升级安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26873782/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com