Anaconda Installation:
Anaconda Installation (windows):
Step2: Scroll down and select windows
Step3: Download Python 3.7 (64-bit or 34-bit as per requirement)
Step4: Remove all the previously installed Anaconda files from the system
& restart
Step5: Double click on the Downloaded Anaconda3 Software and select next,
next until last step.
Step6: After installation restart the system.
Anaconda Installation (Ubuntu):
Download Anaconda Unix version
Install: $bash Anaconda3-2019.03-Linux-x86_64.sh
Enter à Enter
Activate Installation à source ~/.bashrc
Test installation: $ conda list
Set path: export PATH=~/anaconda3/bin:$PATH
TensorFlow(1.x) setup (Windows and
Linux users):
TensorFlow(1.x) setup (Windows and
Linux users):
In Spyder, go to Tools and Open Anaconda Prompt. Then enter the
following commands:
1. Create a new environment with Anaconda and Python 3.5:
conda create -n tensorflow python=3.5 anaconda
2. Activate the environment:
activate tensorflow
3. After this you can install Theano, TensorFlow and Keras:
conda install theano
conda install mingw libpython
pip install tensorflow
pip install keras
4. Update the packages:
conda update --all
5. Run Spyder
spyder
To install TensorFlow on your GPU (optional):
pip install tensorflow-gpu
TensorFlow Installation ( windows10)
Tensorflow 2.x Installation
Step1) install python 3.7
Step2) check for pip 19.0.3 and above
pip is by deafault available in python3.7
Step3) install virtual env:
py -m pip install --user virtualenv
Step4)create virtual environment(for project specific)
c:/ virtualenv --system-site-packages -p python3 ./venv
c:/.\venv\Scripts\activate
Step5) Install pip: (for checking only, by default it will be there)
pip install --upgrade pip
Step6) (venv) C:\Users\hari krishna>pip list
Shows all available installed softwares in the created environment
venv --> environment name we gave
Step7) Install tensorflow:
(venv) C:\Users\hari krishna>pip install --upgrade tensorflow
Common error which can be ignored:
2020-02-10 18:21:42.346171: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-02-10 18:21:42.347867: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Pytorch in windows:
1)Using
pip:
(venv_DL1) C:\Users\hari krishna>pip install torch==1.4.0+cpu
torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
2)
using conda:
conda install pytorch torchvision cpuonly -c pytorch
PyCharm Installation:
PyCharm Installation:
and download the community edition.