深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 629|回复: 1
打印 上一主题 下一主题

python: CRC系统开发环境的建置(win7 32)

[复制链接]

800

主题

1379

帖子

7725

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7725
跳转到指定楼层
楼主
发表于 2020-2-25 22:29:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
前面做过两次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. >>>
复制代码





回复

使用道具 举报

800

主题

1379

帖子

7725

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7725
沙发
 楼主| 发表于 2020-2-25 22:53:01 | 只看该作者
安装好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
复制代码




回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-6-29 02:12 , Processed in 0.047064 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表