└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Python 3.6 Installation Notes on Windows 7 2 | 3 | ## Table of Contents 4 | - [Anaconda](#anaconda3-v5_1_0-windows-64-bit) 5 | - [Geopandas](#geopandas-v0_4_0) 6 | - [Instagram](#instagramapi-v1_0_2) 7 | - [igraph](#igraph-v0_7_1) 8 | - [openCV](#opencv-v3_4_2) 9 | - [pdf2image](#pdf2image-v0_1_14) 10 | - [PyTesseract](#pytesseract-v0_2_2) 11 | - [Selenium](#selenium-v3_13_0) 12 | --- 13 | ## Anaconda3 v5_1_0 Windows 64-bit 14 | **Problem:** `conda` and `pip` commands not recognized in the command window 15 | **Solution:** Add `C:\Users\caoa\AppData\Local\Continuum\anaconda3\Scripts` to the PATH environment variable to your local account for a local user installation 16 | 17 | **Problem:** Can not install packages with `conda` or `pip` because it can not find the following file `C:\Users\caoa\AppData\Local\Continuum\anaconda3\Lib\site-packages\certifi\weak.pem` 18 | **Solution:** Copied `cacert.pem` and renamed to `weak.pem` 19 | 20 | ## Geopandas v0_4_0 21 | **Problem:** ImportError: DLL load failed: The specified module could not be found. 22 | **Solution:** Download binary wheel from [Christoph Gohlke](https://www.lfd.uci.edu/~gohlke/pythonlibs/) for the following packages: 23 | GDAL, fiona, pyproj, rtree, shapely, geopandas 24 | 25 | `pip install` wheels in the following order: 26 | 1. GDAL 27 | 2. fiona 28 | 3. pyproj 29 | 4. rtree 30 | 5. shapely 31 | 6. geopandas 32 | 33 | **Problem:** Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ 34 | **Solution:** Download and install **Microsoft Build Tools 2015 Update 3** or **Build Tools for Visual Studio 2017** 35 | 36 | ## igraph v0_7_1 37 | **Problem:** Plots in Jupyter Notebook don't work 38 | **Solution:** Copy this modified igraph drawing [\_\_init\_\_.py](https://github.com/epmarie/network_workshop/blob/master/__init__.py) file to `..\Anaconda3\Lib\site-packages\igraph\drawing` folder 39 | 40 | ## InstagramApi v1_0_2 41 | **Problem:** Need ffmpeg 42 | **Solution:** Install ffmpeg from https://www.ffmpeg.org/ 43 | 44 | **Problem:** Issue with making requests 45 | **Solution:** `requests` package has to be v2.11.1 [See Source](https://github.com/LevPasha/Instagram-API-python/blob/master/requirements.txt) 46 | 47 | ## OpenCV v3_4_2 48 | 1. Download binary wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and `pip install` 49 | 2. Update `numpy` if `import cv2` does not work 50 | 51 | ## pdf2image v0_1_14 52 | 1. Install Poppler for Windows http://blog.alivate.com.au/poppler-windows/ 53 | 2. Add `poppler-0.51` folder to your PATH or move it to a PATH directory 54 | 3. `pip install pdf2image` 55 | 4. `pip install -U pillow` 56 | 5. Restart Spyder if necessary 57 | 58 | ## PyTesseract v0_2_2 59 | 1. Install Google's Tesseract-OCR Engine (v3_05_01) via [pre-built binary package for Windows](https://github.com/UB-Mannheim/tesseract/wiki) for all users on PC 60 | 2. Add `Tesseract-OCR` folder to your PATH 61 | 3. `pip install pytesseract` 62 | 4. `pip install -U pillow` 63 | 5. Restart Spyder if necessary 64 | 65 | ## Selenium v3_13_0 66 | 1. `pip install selenium` 67 | 2. Download latest chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads 68 | 3. Put chromedriver.exe in the PATH or specify it directly in the line of code 69 | `webdriver.Chrome(r'C:\Users\caoa\AppData\Local\Continuum\anaconda3\chromedriver.exe', chrome_options = options)` 70 | --------------------------------------------------------------------------------