0
这是在那里了很多,但我似乎无法找到我的具体情况,我认为这是安装tensorflow但它不进口:导入错误:没有模块名为“tensorflow”
C:\Users\Upstairs\AppData\Local\Programs\Python\Python35\Scripts>pip3 install --upgrade tensorflow
Requirement already up-to-date: tensorflow in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages
Requirement already up-to-date: wheel>=0.26 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from tensorflow)
Requirement already up-to-date: protobuf>=3.1.0 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from tensorflow)
Requirement already up-to-date: six>=1.10.0 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from tensorflow)
Requirement already up-to-date: numpy>=1.11.0 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from tensorflow)
Requirement already up-to-date: setuptools in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from protobuf>=3.1.0->tensorflow)
Requirement already up-to-date: packaging>=16.8 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from setuptools->protobuf>=3.1.0->tensorflow)
Requirement already up-to-date: appdirs>=1.4.0 in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from setuptools->protobuf>=3.1.0->tensorflow)
Requirement already up-to-date: pyparsing in c:\users\upstairs\appdata\local\programs\python\python35\lib\site-packages (from packaging>=16.8->setuptools->protobuf>=3.1.0->tensorflow)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Upstairs\AppData\Local\Programs\Python\Python35\Scripts>cd..
C:\Users\Upstairs\AppData\Local\Programs\Python\Python35>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'tensorflow'
>>>
为什么不升级点数? – dv3
我试过了,它不更新。那好吧,因为它是在做python2.7,更新点数为3.5。 张量流的确切结果相同 – Scalextrix
这可能来自您的两个Python安装之间的冲突。你能否尝试彻底卸载TF并确保隔离它的Python 3.5安装? – Adriano