Skip to main content
 首页 » 编程设计

python之安装 fancyimpute python 3.6

2025年02月15日11xing901022

我正在使用 Windows 10。

在执行 pip install fancyimpute 时:

Failed building wheel for ecos 
      Running setup.py clean for ecos 
    Failed to build ecos 
    Installing collected packages: dill, multiprocess, ecos, cvxpy, fancyimpute 
      Found existing installation: dill 0.2.5 
        DEPRECATION: Uninstalling a distutils installed project (dill) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 
        Uninstalling dill-0.2.5: 
    Exception: 
    Traceback (most recent call last): 
      File "C:\ProgramData\Anaconda3\lib\shutil.py", line 538, in move 
        os.rename(src, real_dst) 
    PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\dill-0.2.5-py3.6.egg-info' -> 'C:\\Users\\Archit\\AppData\\Local\\Temp\\pip-hir5dush-uninstall\\programdata\\anaconda3\\lib\\site-packages\\dill-0.2.5-py3.6.egg-info' 
 
During handling of the above exception, another exception occurred: 
 
Traceback (most recent call last): 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main 
    status = self.run(options, args) 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run 
    prefix=options.prefix_path, 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_set.py", line 778, in install 
    requirement.uninstall(auto_confirm=True) 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_install.py", line 754, in uninstall 
    paths_to_remove.remove(auto_confirm) 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove 
    renames(path, new_path) 
  File "C:\ProgramData\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 267, in renames 
    shutil.move(old, new) 
  File "C:\ProgramData\Anaconda3\lib\shutil.py", line 553, in move 
    os.unlink(src) 
PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\dill-0.2.5-py3.6.egg-info' 

请您参考如下方法:

您可能会遇到权限问题,因为您正在尝试全局安装该库。您的选择是:

  1. 以管理员身份运行 pip(以管理员身份运行命令提示符,然后使用它来运行 pip)。

  2. 使用 virtualenv在本地安装库。