[python 3.x] Module is clearly installed, but the module is not found.

Asked 1 years ago, Updated 1 years ago, 97 views

absl-py (0.1.12)
astor (0.6.2)
bleach (1.5.0)
gast (0.2.0)
grpcio (1.10.0)
html5lib (0.9999999)
Markdown (2.6.11)
numpy (1.14.2)
pip (9.0.1)
protobuf (3.5.2.post1)
setuptools (39.0.1)
six (1.11.0)
tensorboard (1.6.0)
tensorflow (1.6.0)
termcolor (1.1.0)
Werkzeug (0.14.1)
wheel (0.30.0)
You are using pip version 9.0.1, however version 9.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\yym30>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'

Obviously, it says that tensor flow is installed above, but it says that I can't find it because I'm importing the module right below

python3.6.2 tensorflow module

2022-09-21 21:08

1 Answers

python -c "import sys;print(sys.path)"

One of the above results should include the path where the module is installed.

It usually occurs when multiple versions of python are installed and different from the python that pip uses.

You should also check pythonhome.


2022-09-21 21:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.