"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

April 17, 2017

Day #65 - Python Package Installation commands - Windows

Had an issue running a code, Tried different options, Uninstalling existing version of keras and reinstalling it worked. Bookmarking commands

#Install package
pip install keras
#Uninstall package
pip uninstall keras
#Install particular version of package
conda install python=3.5.3
#Install particular version of package
conda install -c anaconda h5py=2.7.0
conda install -c anaconda h5py=2.5.0
conda install h5py
#Update package
conda update h5py
#Update Environment
conda update anaconda
#Update all packages
conda update --all
conda clean --all
conda update --all python=3.5.3
#tensorflow installation commands
#To activate this environment, use:
activate tensorflow
#To deactivate this environment, use:
deactivate tensorflow
#deactivate tensorflow # start by deactivating the existing tensorflow env
# remove the env
conda env remove -n tensorflow
conda create -n tensorflow python=3.5.2
activate tensorflow
(tensorflow) conda install spyder
pip install keras
conda install h5py
conda install tensorflow
conda install requests
conda install cython
pip install nltk
conda install scipy
conda install urllib3
conda install numpy
conda install pandas
#Finally below command for spyder to work properly
conda update --all python=3.5.3
pip install --upgrade --force setuptools
conda update qt pyqt
conda install spyder ipykernel=4.8.2
pip install tensorflow==1.1
pip install opencv-python
pip install opencv-contrib-python
conda install -c conda-forge tensorflow
#conda update spyder
#pip install -U spyder

Happy Learning!!!

No comments: