I installed the latest version of Python (3.6.4 64-bit)
and the latest version of PyCharm (2017.3.3 64-bit)
. Then I installed some modules in PyCha
Tensorflow seems to need special versions of tools and libs. Pip only takes care of python version.
To handle this in a professional way (means it save tremendos time for me and others) you have to set a special environment for each software like this.
An advanced tool for this is conda.
I installed Tensorflow with this commands:
sudo apt install python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
sudo apt install python3-pip
sudo apt-get install curl
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
yes
source ~/.bashrc
nano .bashrc
conda create --name your_name python=3
conda activate your_name
conda install -c conda-forge tensorflow
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
PS: some commands that may be helpful conda search tensorflow
https://www.tensorflow.org/install/pip
uses virtualenv. Conda is more capable. Miniconda ist sufficient; the full conda is not necessary