Reputation: 51
I'm struggling to install Spyder (5.1.5) after installing Keras and Tensorflow.
Here are the steps I have taken so far:
'spyder cannot be installed on this environment. Do you want to install the package in an existing environment or create a new environment?'
The other thing I've tried, from the Anaconda prompt:
I get the following error:
Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: - Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort.
Thanks for any help!
Upvotes: 5
Views: 5312
Reputation: 177
My solution was to install Spyder first in a clean environment and then use pip.
pip install tensorflow
which installed tensorflow.keras as well.
Upvotes: 0
Reputation: 1
I had the same problem, and the solutions here by Ikram and Ashwini resolved my issues. The key fix was that you need to create an environment with Python 3.7, not 3.8.
Upvotes: 0
Reputation:
On command prompt type
#Set Up Anaconda Environments
conda create --name tf python=3.8
#Activate the new Environment
source activate tf
#Install Tensorflow
conda install tensorflow
#Install Spyder
conda install spyder
#Launch Spyder
spyder
#Verify installation
import tensorflow
Upvotes: 1