handwritten character recognition anaconda is desired package

Disclaimer: This article is a blogger original article, reproduced, please attach Ming source ^ _ ^ https://blog.csdn.net/cprimesplus/article/details/89816505

Foreword

  After successfully installed anaconda, you want to run handwritten character recognition program that requires some installation package, will now record the following command:

text

1. Configure TensorFlow environment

  You first need to enter anaconda comes with a command line window, execute the following command in the window (python version of the first line of command, depending on their anaconda comes with python environment):

See the python version anaconda method:
into said terminal window and enter: python --version

conda create -n tensorflow python=3.7
pip install tensorflow
pip install --ignore-installed --upgrade tensorflow
python -m pip install -U pip
pip install keras
conda install libpython
conda install mingw

Another method:
Right Anaconda Prompt, click into the folder, the new right txt file, copy the code to the above file, rename the file run.bat.
Return to the folder, hold down the shift, right-click and select Open PowerShell window here, enter in the window. \ Run.bat waiting installation is complete.


2. Install the desired package handwritten character recognition
command:

pip install pygame
pip install matplotlib
pip install opencv-python
python -m pip install --upgrade pip
pip3 install matplotlib -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install opencv-python==3.4.3.18

Or download packaged .bat program (link: https://download.csdn.net/download/cprimesplus/11157849)
this package placed in the anaconda-Lib-site_packages path, below is my path:
Here Insert Picture Description
Hold down the shift key and click the right mouse button, find the "window open Powershell here", double-click the entry, and enter

.\run.bat

Wait until the installation is complete you can close the window.
Use pycharm run handwritten character recognition code, find the bottom left corner of the "Terminal" Double-click to enter, enter "activate tensorflow" activation environment. After you enter p Y t h O n python a p p . p Y app.py run code, you may also get an error saying can not find the installation package, do not worry, the following window re-find updates about the environment, or to re-enter the above command again (because they have installed in settings, and therefore will not install a second time) can be.
Here Insert Picture Description


running result

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/cprimesplus/article/details/89816505