- 44 Videos of Microsoft
- Code Academy
- Operations on dictionaries
- Cross Platform
- Python Programming – with videos
- Machine learning
- Data Analysis
- Game development
- Python Fundamentals
- Web Development
- Bots and AI
- Robotics
- GUIs
- GoLang – Go language
- Idle – Python default developing environment. Upon installing python, it installed also Idle by default.
- Visual studio 2017 (I prefer the community edition).
- PyCharm – Most popular IDE for Python.
3. Windows – Addons Python 2.x
- TK GUI for Python – Graphical User interface
- Numpy – Run from command prompt “pip install numpy“
- Matplotlib – Run from command prompt “pip install matplotlib“
- OpenCV on windows for Python
- Option 1 (windows)
- pip install opencv-python
- Option 2
- Download opencv from here.
- pip install [whl file name].whl
- Option 3
- Run from command prompt “pip install numpy“
- Test Numpy with the following python command: print numpy.version.version
- Download OpenCV and install
- Goto installed openCV: opencv/build/python/2.7 folder.
- Copy cv2.pyd to C:/Python27/lib/site-packeges.
- Open Python IDLE and type following codes in Python terminal.
- import cv2
- print cv2.__version__
- FFmpeg
- Inside OpenCV directory: opencvbuildbinopencv_ffmpeg320.dll copy to c:python27 directory.
- Run from command prompt “pip install numpy“
- Option 4
- Example Code:
- Run example program to check it works, this program extracts frames from a video file:
import numpy
import cv2print numpy.version.version
print cv2.__version__vidcap = cv2.VideoCapture(“PigeonVideo.mp4”)
success,image = vidcap.read()
count = 0
success = True
while success:
success,image = vidcap.read()
print ‘Read a new frame: ‘, success
cv2.imwrite(“frame%d.jpg” % count, image)
count += 1
- Run example program to check it works, this program extracts frames from a video file:
- Option 1 (windows)
4. Windows – Addons Python 3.5.x
- Note: For every install, open command prompt as ADMINISTRATOR only.
- Numpy install: pip3 install numpy
- Install opencv
- Option 1 (windows)
- pip install opencv-python
- Option 2
- Download opencv from here.
- pip install [whl file name].whl
- Option 1 (windows)
- Tensorflow – An open-source software library for Machine Intelligence
- Install CPU only:
- Open Command prompt
- Run the following command:
- pip3 install –upgrade tensorflow
- Check version of Tensorflow as follows:
- Open command prompt
- Run Python
- Run the following command:
- import tensorflow as tf; print(tf.__version__)
- Image recognition example
- Video Example
- Fatkun – Batch download images
- This is needed to download batch images from google search for training model purposes.
- Install CPU only:
5. Install Tensorflow with GPU on windows
(2017/09/29) Scenario that worked on the following steps has been done on blank Windows 10 v.1607:
- Install Nvidia graphics driver and make sure it has no errors.
- Install “Microsoft Visual C++ 2015 Redistributable Update 3“
- Install Cuda 8 with patch.
- Install cuDNN 6.
- Install Python 3.5.4
- Download Tensorflow v0.12.0 or Tensorflow v1.0.1.
- Open Cmd-Terminal-Command prompt and install the downloaded wheel as follows:
- cd
- pip install tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl
- Open Python and run the following commands:
- import tensorflow as tf
- tf.__version__
- Case of error, run THIS python script.
The following steps has been done on blank Windows 10 v.1703:
- Make sure Python 3.5 is installed.
- Do not select customized installation.
- Check the checkbox of adding python to system path.
- pip install –upgrade Install tensorflow-gpu
- Download and install CUDA (8.0)
- Download cuDNN (6.0)
- After Cuda installed then extract cuDNN and copy it over Cuda directory.
- Run python from command prompt.
- Try the following command:
- import tensorflow as tf
- If there are no errors then it works.
- If there are error then try:
- Download and install “Microsoft Visual C++ 2015 Redistributable Update 3“
- Watch the following video for more details:
- Installing CPU and GPU TensorFlow on Windows
No | Version | Py 2.7 | Py 3.4 | Py 3.5 | Py 3.6 | Link |
---|---|---|---|---|---|---|
1 | 0.12.0 | CPU: Mac, Linux GPU: Mac, Linux | CPU: Linux GPU: Linux | CPU: Mac, Linux, Windows GPU: Mac, Linux, Windows | ||
2 | 0.12.1 | GPU: Mac, Linux | GPU: Linux | GPU: Max, Linux, Windows | GPU: Max, Linux | |
3 | 1.0.0 | GPU: Max, Linux | GPU: Linux | GPU: Mac, Linux, Windows | GPU: Mac, Linux | Link |
4 | 1.0.1 | GPU: Mac, Linux, | GPU: Mac, Linux, | GPU: Mac, Linux, Windows | GPU: Mac, Linux | Link |
5 | 1.2.1 | GPU: Linux | GPU: Linux | GPU: Linux, Windows | GPU: Linux, Windows | Link |
6 | 1.3.0 | GPU: Linux | GPU: Linux | GPU: Linux, Windows | GPU: Linux, Windows | Link |