安装fancyimpute蟒蛇3.6

问题描述:

我使用的是Windows 10安装fancyimpute蟒蛇3.6

虽然做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在本地安装库。

+0

命令 “C:\ ProgramData \ Anaconda3 \ python.exe -u -c” 进口setuptools的,标记化; __文件__ ='C:\\用户\\ Archit \\应用程序数据\\本地\\温度\\ pip-build-4lgy1kiw \\ ecos \\ setup.py'; f = getattr(tokenize,'open',open)(__ file __); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code,__file__,'exec'))“install --record C:\ Users \ Archit \ AppData \ Local \ Temp \ pip-lfuku2jk-record \ install-record .txt --single-version-external-managed -compile“在C:\ Users \ Archit \ AppData \ Local \ Temp \ pip-build-4lgy1kiw \ ecos \ :::中出现错误代码1失败,现在这是错误 –

+2

感谢您的帮助。我运行conda安装ecos。然后我在管理中运行pip install fancyimpute。模式。 –