博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pip更新
阅读量:6860 次
发布时间:2019-06-26

本文共 3112 字,大约阅读时间需要 10 分钟。

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

C:\Windows\system32>pip install --upgrade tensorflowCollecting tensorflow  Using cached tensorflow-1.0.1-cp35-cp35m-win_amd64.whlCollecting numpy>=1.11.0 (from tensorflow)  Using cached numpy-1.12.1-cp35-none-win_amd64.whlRequirement already up-to-date: six>=1.10.0 in e:\tools\anaconda\lib\site-packages (from tensorflow)Requirement already up-to-date: protobuf>=3.1.0 in e:\tools\anaconda\lib\site-packages (from tensorflow)Requirement already up-to-date: wheel>=0.26 in e:\tools\anaconda\lib\site-packages (from tensorflow)Requirement already up-to-date: setuptools in e:\tools\anaconda\lib\site-packages (from protobuf>=3.1.0->tensorflow)Requirement already up-to-date: packaging>=16.8 in e:\tools\anaconda\lib\site-packages (from setuptools->protobuf>=3.1.0->tensorflow)Requirement already up-to-date: appdirs>=1.4.0 in e:\tools\anaconda\lib\site-packages (from setuptools->protobuf>=3.1.0->tensorflow)Requirement already up-to-date: pyparsing in e:\tools\anaconda\lib\site-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:\tools\Anaconda\lib\shutil.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:\tools\Anaconda\lib\site-packages\pip\basecommand.py", line 215, in main    status = self.run(options, args)  File "E:\tools\Anaconda\lib\site-packages\pip\commands\install.py", line 317, in run    prefix=options.prefix_path,  File "E:\tools\Anaconda\lib\site-packages\pip\req\req_set.py", line 736, in install    requirement.uninstall(auto_confirm=True)  File "E:\tools\Anaconda\lib\site-packages\pip\req\req_install.py", line 742, in uninstall    paths_to_remove.remove(auto_confirm)  File "E:\tools\Anaconda\lib\site-packages\pip\req\req_uninstall.py", line 115, in remove    renames(path, new_path)  File "E:\tools\Anaconda\lib\site-packages\pip\utils\__init__.py", line 267, in renames    shutil.move(old, new)  File "E:\tools\Anaconda\lib\shutil.py", line 550, in move    rmtree(src)  File "E:\tools\Anaconda\lib\shutil.py", line 488, in rmtree    return _rmtree_unsafe(path, onerror)  File "E:\tools\Anaconda\lib\shutil.py", line 378, in _rmtree_unsafe    _rmtree_unsafe(fullname, onerror)  File "E:\tools\Anaconda\lib\shutil.py", line 383, in _rmtree_unsafe    onerror(os.unlink, fullname, sys.exc_info())  File "E:\tools\Anaconda\lib\shutil.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'

转载于:https://www.cnblogs.com/mandalalala/p/6798256.html

你可能感兴趣的文章
HBase的集群搭建(1、3、5节点都适用)
查看>>
将复杂form表单序列化serialize-object.js
查看>>
C语言 · 出现次数最多的数
查看>>
正则获取HTML代码中img的src地址
查看>>
Java 根据当前时间获取明天、当前周的周五、当前月的最后一天
查看>>
3.View绘制分析笔记之onLayout
查看>>
linux语言设置i18n(转)
查看>>
双链表插入 删除详解
查看>>
迄今为止计算机视觉领域超有实力的研究人物主页
查看>>
Java中值类型和引用类型的区别
查看>>
php 页面间传递数据
查看>>
[Node.js] Initialize a LoopBack Node.js Project through the CLI
查看>>
nginx补丁格式说明(CVE-2016-4450为例)
查看>>
C#编程(八十一)---------- 捕获异常
查看>>
Kinect2.0点云数据获取
查看>>
Omi新成员omi-router正式发布
查看>>
CentOS7.2 安装Tomcat
查看>>
二进制数组
查看>>
how tomcat works 总结
查看>>
Java+FlashWavRecorder实现网页录音并上传
查看>>