zoukankan      html  css  js  c++  java
  • pip更新


    更新TensorFlow的时候遇到这个问题, 一开始以为权限不够,就用管理员运行,又改权限,搞了半天才发现是更新的时候还开着另一个python程序,难怪。。灰溜溜地把pycharm以及jupyter notebook关了。。


    C:Windowssystem32>pip install --upgrade tensorflow
    Collecting tensorflow
      Using cached tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
    Collecting numpy>=1.11.0 (from tensorflow)
      Using cached numpy-1.12.1-cp35-none-win_amd64.whl
    Requirement already up-to-date: six>=1.10.0 in e:	oolsanacondalibsite-packages (from tensorflow)
    Requirement already up-to-date: protobuf>=3.1.0 in e:	oolsanacondalibsite-packages (from tensorflow)
    Requirement already up-to-date: wheel>=0.26 in e:	oolsanacondalibsite-packages (from tensorflow)
    Requirement already up-to-date: setuptools in e:	oolsanacondalibsite-packages (from protobuf>=3.1.0->tensorflow)
    Requirement already up-to-date: packaging>=16.8 in e:	oolsanacondalibsite-packages (from setuptools->protobuf>=3.1.0->tensorflow)
    Requirement already up-to-date: appdirs>=1.4.0 in e:	oolsanacondalibsite-packages (from setuptools->protobuf>=3.1.0->tensorflow)
    Requirement already up-to-date: pyparsing in e:	oolsanacondalibsite-packages (from packaging>=16.8->setuptools->protobuf>=3.1.0->tensorflow)
    Installing collected packages: numpy, tensorflow
      Found existing installation: numpy 1.11.1
        Uninstalling numpy-1.11.1:
    Exception:
    Traceback (most recent call last):
      File "E:	oolsAnacondalibshutil.py", line 538, in move
        os.rename(src, real_dst)
    OSError: [WinError 17] 系统无法将文件移到不同的磁盘驱动器。: 'e:\tools\anaconda\lib\site-packages\numpy' -> 'C:\Users\admin\AppData\Local\Temp\pip-4anzrkvb-uninstall\tools\anaconda\lib\site-packages\numpy'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "E:	oolsAnacondalibsite-packagespipasecommand.py", line 215, in main
        status = self.run(options, args)
      File "E:	oolsAnacondalibsite-packagespipcommandsinstall.py", line 317, in run
        prefix=options.prefix_path,
      File "E:	oolsAnacondalibsite-packagespip
    eq
    eq_set.py", line 736, in install
        requirement.uninstall(auto_confirm=True)
      File "E:	oolsAnacondalibsite-packagespip
    eq
    eq_install.py", line 742, in uninstall
        paths_to_remove.remove(auto_confirm)
      File "E:	oolsAnacondalibsite-packagespip
    eq
    eq_uninstall.py", line 115, in remove
        renames(path, new_path)
      File "E:	oolsAnacondalibsite-packagespiputils\__init__.py", line 267, in renames
        shutil.move(old, new)
      File "E:	oolsAnacondalibshutil.py", line 550, in move
        rmtree(src)
      File "E:	oolsAnacondalibshutil.py", line 488, in rmtree
        return _rmtree_unsafe(path, onerror)
      File "E:	oolsAnacondalibshutil.py", line 378, in _rmtree_unsafe
        _rmtree_unsafe(fullname, onerror)
      File "E:	oolsAnacondalibshutil.py", line 383, in _rmtree_unsafe
        onerror(os.unlink, fullname, sys.exc_info())
      File "E:	oolsAnacondalibshutil.py", line 381, in _rmtree_unsafe
        os.unlink(fullname)
    PermissionError: [WinError 5] 拒绝访问。: 'e:\tools\anaconda\lib\site-packages\numpy\core\multiarray.cp35-win_amd64.pyd'


  • 相关阅读:
    [daily][archlinux][shell][fish] 使用最炫酷的shell工具fish
    [daily][btrfs][mlocate][updatedb] mlocate不认识btrfs里面的文件
    [daily][archlinux] TODO LIST
    [math][mathematica] mathematica入门
    [math][mathematica] archlinux 下 mathematica 的安装 (科学计算软件 mathematica/matlab/sagemath)
    [daily][centos][sudo] sudo 报错
    [development][C][thread_local] 线程全局变量
    [development][C] C语言标准
    [daily][centos][nginx] 在centos7使用nginx启用对文件目录的http访问
    CS RANK: AI & ML
  • 原文地址:https://www.cnblogs.com/mandalalala/p/6798256.html
Copyright © 2011-2022 走看看