I am using Python 3.6 from Anaconda 4.3.1 on Windows 10. I'm trying to offline install TensorFlow, and i have download a .whl file to install module.
install tensorflow warning
But I have installed the tensorboard 1.12 moudule on my computer.
I have installed the tensorboard moudule
I have no way to install tensorflow now. please help me, thanks!
I have solved this problem. Tensorflow 1.11 need tensorboard version 1.11, but I have installed tensorboard 1.12.
Related
I am trying to install transformers using pip
pip install transformers
after import transformers
this error show
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configuration, and file/data utilities can be used.
although I install TensorFlow-GPU= 2.3.1 and using conda
system info
Windows 10
python 3.6
cuda 10.1
tensorflow-gpu= 2.3.1
You need one of them PyTorch or Tensorflow.
You can check if tensorflow is installed or you can reinstall it
pip uninstall tensorflow
pip install tensorflow==2.2.0(you can install only tensorflow it worked same as tensorflow-gpu)
pip uninstall transformer
pip install transformer==3.3.1
If this dosen't solve it,try to upgrade your python to 3.7.8
Hope it solve your promblem.
I found the problem after investigate for 10 hours
I installed tensorflow by using conda install tensorflow-gpu
and transformers by using pip after remove tensorflow-gpu and install it by using pip
it works fine
I cannot seem to import Tensorflow or keras.
I have windows 10 computer
I have python 3.8.5
I installed the following using command pip3 install XXXXXXXXXX
1.matplotlib
2.pandas
3.numpy
4.Tensorflow
5.keras
in that order
i have no problem importing matplotlib, pandas or numpy.
but when I try to import tensorflow or keras, it cannot find the module (see screenshot provided)
i also checked in cmd to ensure i have them installed (see screenshot)
FYI, I installed python in drive F: and windows is installed in drive C:
is there a reason why I can import pandas, and not tensorflow or keras?
any form of help would be highly appreciated!
screenshot on jupyter error:
what version of tensorflow do you want to install? My experience is to use Anaconda onda terminal to install tensorflow. First install tensorflow 2.1 using conda.Conda automatically installs cudnn 7.6.5 and CUDA Toolkit 10.1.243. These are compatible with tensorflow 2.2. Then use pip to install tensorflow 2.2 as shown below
pip install tensorflow ==2.2.0
Conda at this time can only install tensorflow up to 2.1 that is why you have to use pip. pip does not automatically install cudnn or the Cuda toolkit but you already have them installed when you install version 2.1 with Conda. Otherwise you would have to go through a more complicated process to manually install cudnn and the toolkit. Some people have reported problems using python 3.8 with tensorflow. If you run into that create as seperate environment and install python 3.7, tensorflow 2.1 using conda, then install tensorflow 2.2 using pip.
when i try to import tensorflow from jupyter notebooks. I'm facing a error No module named 'tensorflow' .
But i have installed tensorflow using pip command, and it available in this path c:\program files\python38\lib\site-packages.
please tell me how to access packages installed via pip from jupyter notebooks?
When you installed tensorflow you had a specific environment active and that is where tensorflow was installed. If you are using Anaconda and did not specify which environment to make active it installed it in the base environment. If you want to install tensorflow to a specific environment (lets call it tf) then start the anaconda prompt and enter the text conda activate tf. Then install tensorflow with pip in the same window. My recommendation is to install tensorflow with conda versus pip. conda installs tensorflow and also installs the cuda toolkit and the proper version of cuDNN. pip does not do that. If you install tensorflow with conda I believe it installs version 2.1, cuda toolkit version 10.1.243 and cuDNN version 7.6.5.
Now, the official TensorFlow on Anaconda is 2.0. My question is how to force Anaconda to install an earlier version of TensorFlow instead. So, for example, I would like Anaconda to install TensorFlow 1.14 as plenty of my projects are depending on this version.
You can force installing a certain version of any package found on Anaconda using simply an = operator with the package version attached to it.
So, if you want to install tensorflow 1.14, you can run the following command:
conda install -c conda-forge tensorflow=1.14
You can replace 1.14 with any other versions. To see the available versions of tensorflow on Anaconda, you can run:
conda search tensorflow
first find the python version of tensorflow==1.14.0, then find the Anaconda version by python version.
e.g. tensorflow 1.14.0 can work well on python36, and Anaconda 3.5.1 has python36. So install the Anaconda 3.5.1, then install tensorflow==1.14.0 by pip
I've installed and imported tensorflow before (https://github.com/ankur715/MOOCs/blob/master/pythonprogramming/ds_tf_keras_tutorial.ipynb), but Anaconda on my Windows went haywire starting this week.
It wasn't loading the Jupyter localhost after several tries/times, so I uninstalled it and reinstalled it. Then realized that Python 3.7 is what didn't allow tensorflow. I downgraded to Python 3.5, checked version of tensorflow which is 0.12.0.
I think it wasn't working because of Python 3.7 earlier, and now tensorflow is 0.12.0. How do I upgrade to tensowflow 1.12.0, to see if that'll solve it?
It is better to remove and install:
conda uninstall tensorflow
conda install -c conda-forge tensorflow=1.12.0
Look here.