win10系统
python3.6
tools pip
其他工具使用pip下载都很顺利,但是遇到
pip install tensorflow #CPU 深度学习框架
not find XXX
解决流程:
怎么可能发现不了tensorflow呢,
那我们就查一下能不能搜索到
结果
还真的是不少版本
那为啥就找不到呢
肯定是我的python出现了问题,那问题到底在哪呢
是不是我的pip出错了呢
会不会是版本不行,
那就升级一下版本
PS C:\Users\Admin_Q> pip install --upgrade
ERROR: You must give at least one requirement to install (see "pip help install")
You are using pip version 18.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\Admin_Q> python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-19.2.3
但是运行pip install tensorflow
还是not find,
甚是抓狂
pip没问题了啊,难道是python?
查看了python版本
PS C:\Users\Admin_Q> python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52)
[MSC v.1916 32 bit (Intel)] on win32
纳尼,注意到没有,我的电脑是64位,为何我要安装一个32位的python,
啊啊啊啊啊啊
怪不得查不到,版本跟CPU不匹配
问题1 就这样找到了
然后重新下载python
下载网址:
https://www.python.org/downloads/windows/
问题2 如何卸载python,重新安装python?
卸载:
使用软件管理,显示python是什么绿色,手动卸载…
没了你谁知道咋卸载么,
然后就不管了,直接安装吧,不卸载了,然后就安装了,很顺利,不幸的是,当打开powershell运行python时,还是原来的python版本,这还了得
然后的然后自然是暴力卸载,强力删除原来python安装的文件夹,400M+的空间啊
我就知道一会安装新版本的时候一定出错,然后重新安装,
果然,安装报错,错误代码5646313
幸运的是,错误可以忽略,安装完了,还是不能powershell,查不到python这个东西,
很明显环境变量没有配置,卸载,在安装的时候没有出错,还有提示是否添加环境变量,添加了就好了,安装三次,终于能够运行成功了
开心的运行pip install tensorflow
PS C:\Users\Admin_Q> pip install --upgrade
ERROR: You must give at least one requirement to install (see "pip help install")
You are using pip version 18.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\Admin_Q> python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-19.2.3
PS C:\Users\Admin_Q> pip install tensorflow
Collecting tensorflow
Downloading https://files.pythonhosted.org/packages/d3/af/296748d4c8d8987423231b93aecce5ab
|█████████████████████████ | 38.1MB 73kB/s eta 0:02:17
就这样终于下载成功了
唉