[PYTHON] What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1

What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1

When using Tensorflow with VS Code, intellisense does not work. (I'm not sure why.) In such a case, try the following procedure to improve it.

** ~ Environment ~ ** ・ Windows 10 ・ Anaconda3 ・ Tensorflow2.1 ・ VSCode ver.1.45.0

** ~ Procedure ~ ** ** 1. Rename the tensorflow folder (anaconda3 \ envs \ (tensorflow virtual environment) \ Lib \ site-packages \ tensorflow) appropriately. It can be tensorflow_bk or whatever. ** **

** 2. Rename the tensorflow_core folder (anaconda3 \ envs \ (tensorflow virtual environment) \ Lib \ site-packages \ tensorflow_core) to tensorflow. ** **

** 3. Add the following code to \ _ \ _ init \ _ \ _. Py in the tensorflow folder. ** **

from .python.keras.api._v2 import keras
from tensorflow_estimator.python.estimator.api._v2 import estimator

Quote  https://github.com/tensorflow/tensorflow/issues/32982  https://qiita.com/artemis5656/items/e8e464510a7d907e1feb

Recommended Posts

What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
Intellisense doesn't work with tensorflow2.0 + VScode
What to do if rails s doesn't work
What to do if atom autocomplete-python doesn't work
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if Python doesn't work on Git for Windows
What to do if the server doesn't start with python manage.py runserver
What to do if an error occurs when importing numpy with VScode
Let's Encrypt updated! What to do if the certbot renew command doesn't work
What to do if you can't sort files with subscripts
What to do if yum breaks
What to do with Magics install
What to do with PYTHON release?
What to do to get tensorflow-gpu to work
What to do if you can't install pyaudio with pip #Python
What to do if you get a UnicodeDecodeError with pip install
What to do if you can't build your project with Maven
What to do if you can't find well with grep's -f option
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get stuck during Anaconda installation on Linux
What to do if the Chainer (Windows) sample mnist terminates with WinError 183.
What to do if pyenv install does not proceed with an error
What to do if you get a TypeError with numpy min, max
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
Tensorflow doesn't work!
What to do if pipreqs results in UnicodeDecodeError
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
[For beginners] What to do after installing Anaconda
What to do if pip cannot be installed
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get angry with swapon failed: Operation not permitted
What to do if the latest Jupyter Notebook and nb extensions don't work
What to do if you get an error when installing python with pyenv
What to do if you can't pip install mysqlclient
What to do if you get an OpenSSL error when installing Python 2 with pyenv
No module named What to do if you get'libs.resources'
Preparing to use Tensorflow (Anaconda) with Visual Studio Code
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if SciPy installation fails on CentOS
Links to do what you want with Sublime Text
What to do if Python IntelliSense is not displayed in VS Code on Windows
What to do if a UnicodeDecodeError occurs in pip
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if pip install fails to install dependent libraries
What you can and cannot do with Tensorflow 2.x
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
What to do if you run python in IntelliJ and end with an error
What to do if Linux Modem Manager is interfering with writing keymaps to your own keyboard
What to do if you get an Undefined error when trying to use pip with pyenv
[AWS] What to do when you want to pip with Lambda
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if the package dependency cannot be repaired
When I try to push with heroku, it doesn't work
What to do if pip gives a DistributionError in Homebrew
What to do if you get "coverage unknown" in Coveralls