Problem With Setting Up Tensorflow On Windows
Solution 1:
Create a virtual environment in python. For the creation of a virtual environment, you need virtualenv library.
pip install virtualenv
After installing create your virtual environment. command - virtualenv "NAME-OF-ENVIRONMENT"
eg
virtualenv myenv
This will create a directory called myenv. To activate the virtual environment you have go inside the myenv/scripts folder, open a cmd prompt and type activate.
eg
cd myenv/Scripts
activate
Get out of the Scripts folder
cd ../..
Now install TensorFlow.
pip install tensorflow
Tensorflow requires various libraries to work. As you know TensorFlow 1.x and 2.x are not compatible. When you ran the upgrade script it must have only upgraded the version and not downloaded the dependency.
Note: Always create a virtual environment when working in any project and keep your python package clean. You can delete these environments if they become corrupt or stop working correctly due to any reason, without and fear.
Post a Comment for "Problem With Setting Up Tensorflow On Windows"