深圳全飞鸿
标题:
python: CRC系统开发环境的建置(win7 32)
[打印本页]
作者:
zhgc
时间:
2020-2-25 22:29
标题:
python: CRC系统开发环境的建置(win7 32)
前面做过两次python部署!
1. 在192.168.2.10上, 系统为:win7 32位
python信息如下:
C:\Users\Administrator>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Inte
l)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
复制代码
没有记录安装过程
2.在192.168.2.12上,系统是windows 2008 64bit
python信息如下:
C:\Users\Administrator>python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
复制代码
安装过程记录::
http://www.nagomes.com/disc/foru ... &extra=page%3D1
3. 本次是在虚拟机中部署, 系统为win7 32
以下记录安装过程:
选择版本: python-3.7.4.exe 32bit
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
复制代码
作者:
zhgc
时间:
2020-2-25 22:53
安装好python后执行代码itchat_qfh.py,得以下报错:
========================= RESTART: C:\itchat_qfh.py =========================
Traceback (most recent call last):
File "C:\itchat_qfh.py", line 2, in <module>
import MySQLdb,itchat,time,importlib,sys,threading
ModuleNotFoundError: No module named 'MySQLdb'
>>>
复制代码
安装MySQLdb
执行安装命令:
pip install MYSQL-python -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
复制代码
报错:
building '_mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
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
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
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