深圳全飞鸿

标题: python: CRC系统开发环境的建置(win7 32) [打印本页]

作者: zhgc    时间: 2020-2-25 22:29
标题: python: CRC系统开发环境的建置(win7 32)
前面做过两次python部署!

1. 在192.168.2.10上, 系统为:win7 32位

python信息如下:

  1. C:\Users\Administrator>python
  2. Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Inte
  3. l)] on win32
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>>
复制代码


没有记录安装过程


2.在192.168.2.12上,系统是windows 2008 64bit

python信息如下:

  1. C:\Users\Administrator>python
  2. Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit
  3. (AMD64)] on win32
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>>
复制代码


安装过程记录::  http://www.nagomes.com/disc/foru ... &extra=page%3D1


3. 本次是在虚拟机中部署, 系统为win7 32

以下记录安装过程:

选择版本: python-3.7.4.exe   32bit  

  1. Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 19:29:22) [MSC v.1916 32 bit
  2. (Intel)] on win32
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>>
复制代码






作者: zhgc    时间: 2020-2-25 22:53
安装好python后执行代码itchat_qfh.py,得以下报错:

  1. ========================= RESTART: C:\itchat_qfh.py =========================
  2. Traceback (most recent call last):
  3.   File "C:\itchat_qfh.py", line 2, in <module>
  4.     import MySQLdb,itchat,time,importlib,sys,threading
  5. ModuleNotFoundError: No module named 'MySQLdb'
  6. >>>
复制代码


安装MySQLdb

执行安装命令:
  1. pip install MYSQL-python -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
复制代码


报错:
  1.     building '_mysql' extension
  2.     error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
  3. C++ Build Tools": https://visualstudio.microsoft.com/downloads/
复制代码


缺Visual C++ 14.0, 安装收录在:\tools.syant\python.syant\vc_redist2015_14.0.zip

已经安装了,但是还是报错,只能直接安装whl
收录在:tools.syant\python.syant\package\mysql-python\mysqlclient-1.4.2-cp37-cp37m-win32.whl

  1. pip install "C:\mysqlclient-1.4.2-cp37-cp37m-win32.whl"
复制代码


如果建议更新,就更新一下:
python -m pip install --upgrade pip   (不要用,会很慢)
python -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com


装itchat
据说一定要pip3

  1. pip3 install itchat -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
复制代码









欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2