python--软件、模块相关安装问题

在windows 10 64位,python3.5 32位的服务器上安装paramiko

安装过程报错如下
error: Unable to find vcvarsall.bat

1 安装PyCrypto
命令行下执行以下命令
pip install --use-wheel "d:pythoncode oolpycrypto-2.6.1-cp35-none-win32.whl"


pycrypto-2.6.1-cp35-none-win32.whl 文件是到网上下载https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win32.whl

2、安装paramiko
pip install paramiko

安装django  #######通过在命令提示符下面通过pip安装

C:Userswang>pip install django
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.   ######提示需要升级pip 并写清楚了升级命令

C:Userswang>python -m pip install --upgrade pip   #########升级pip
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 806kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Uninstalling pip-8.1.1:
Successfully uninstalled pip-8.1.1
Successfully installed pip-8.1.2

C:Userswang>pip install django

Collecting django

Using cached Django-1.9.6-py2.py3-none-any.whl
Installing collected packages: django
Successfully installed django-1.9.6          ##安装成功

C:Userswang>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()           ##验证版本
'1.9.6'

mysql 操作

python3不再支持mysqldb。其替代模块是PyMySQL(下载地址:https://github.com/PyMySQL/PyMySQL),赶紧下载安装,修改好程序后,终于欢快的跑了起来。注意:PyMySQL不能用pip安装。

原文地址:https://www.cnblogs.com/qing-add/p/5295083.html