zoukankan      html  css  js  c++  java
  • 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安装。

  • 相关阅读:
    LeetCode 109 Convert Sorted List to Binary Search Tree
    LeetCode 108 Convert Sorted Array to Binary Search Tree
    LeetCode 107. Binary Tree Level Order Traversal II
    LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal
    LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
    LeetCode 103 Binary Tree Zigzag Level Order Traversal
    LeetCode 102. Binary Tree Level Order Traversal
    LeetCode 104. Maximum Depth of Binary Tree
    接口和多态性
    C# 编码规范
  • 原文地址:https://www.cnblogs.com/qing-add/p/5295083.html
Copyright © 2011-2022 走看看