pandas - 使用 pip 安装程序的 pandas 安装错误
问题描述
在命令提示符下通过 python 3.7 的 pip 安装程序安装 pandas 时反复出现以下错误
Using cached https://files.pythonhosted.org/packages/26/fc/d0509d445d2724fbc5f9c9a6fc9ce7da794873469739b6c94afc166ac2a2/pandas-0.23.4-cp37-cp37m-win32.whl
Collecting pytz>=2011k (from pandas)
Downloading https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 204kB/s
Collecting python-dateutil>=2.5.0 (from pandas)
Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
100% |████████████████████████████████| 235kB 187kB/s
Collecting numpy>=1.9.0 (from pandas)
Downloading https://files.pythonhosted.org/packages/94/b5/f4bdf7bce5f8b35a2a83a0b70c545ca061a50b54724b5287505064906b14/numpy-1.16.0-cp37-cp37m-win32.whl (10.0MB)
100% |████████████████████████████████| 10.0MB 139kB/s
Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-req-tracker-hwub07hg\\29e06807d5aed8dd372ea37c64d1e88dc172ee212d473a412d5e638c'
Consider using the `--user` option or check the permissions.
我已经通过管理员运行了命令,但它没有锻炼。
解决方案
尝试按照Jonny的建议进行升级。重新启动计算机,升级 pip 并尝试使用适用于 Python 扩展包的非官方 Windows 二进制文件或pip install --user <package_name>
. 另请查看PermissionError: [WinError 32] The process cannot access the file because it is being used by another process。希望对您有所帮助。
推荐阅读
- angular - 简化使用 ngFor 的 ngClass 条件
- sql-server - 未指定具有 CTE 列名称的 UDF 错误
- wordpress - 如何像这样在 WordPress 中实现 URL 匹配?
- angular - routerLink 指令在使用时不设置 href 属性元素
- graph-theory - 如何将全连接图划分为相似的子图?
- java - getTeamMapping 是否应该从 Spring-Data-JPA 方法中获取数据?
- php - 使用 unpack php 将文件保存在数据库中
- javascript - 在 laravel 中使用 auth()->login() 方法时如何防止重定向?
- oracle - 为 AWS lambda 函数中使用的 ODA.NET 驱动程序启用本机网络加密
- sql - oracle不能创建索引