python学习点滴
来源:互联网 发布:淘宝如何换类目 编辑:程序博客网 时间:2024/05/17 04:30
1、安装qrcode:
N:\python\WXBot>weixin.py
Traceback (most recent call last):File "N:\python\WXBot\weixin.py", line 3, in <module>
import qrcode
ImportError: No module named qrcode
N:\python\WXBot>c:
C:\>cd C:\Python27\Scripts
C:\Python27\Scripts>pip install qrcode
Collecting qrcode
Using cached qrcode-5.3-py2.py3-none-any.whl
Collecting six (from qrcode)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, qrcode
Successfully installed qrcode-5.3 six-1.10.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
提示缺什么就装什么,非常方便。比如这个:ImportError: No module named requests
N:\python\WXBot>c:
C:\Python27\Scripts>pip install requests
Collecting requests
Using cached requests-2.12.1-py2.py3-none-any.whl
Installing collected packages: requests
Successfully installed requests-2.12.1
这样就安装好了。
================如果网上的版本不对,可下载到本机.
遇到过自动下载库文件下载的不对的情况,lxml-3.4.4-cp26-none-win32.whl 中的cp26表示对应的python是2.6版本的,但是我们安装的Python是2.7版本的。所以库文件和python版本要对应好!
另外win32也表示对应的python版本是32位的,如果python是64位的话,则需要下载xml-3.6.4-cp27-cp27m-win64.whl
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
pip install N:\python\lxml-3.6.4-cp27-cp27m-win32.whl
C:\Python27\Scripts>pip install N:\python\lxml-3.6.4-cp27-cp27m-win32.whl
Processing n:\python\lxml-3.6.4-cp27-cp27m-win32.whl
Installing collected packages: lxml
Successfully installed lxml-3.6.4
- python 学习点滴
- Python 学习点滴
- python学习点滴
- 从点滴开始,学习Python!
- [学习点滴]python添加模块路径
- Python点滴
- python 点滴
- python 点滴
- Python 点滴
- python 点滴
- python 点滴
- python点滴
- Python点滴
- Python点滴
- 学习点滴
- 点滴学习
- 学习,点滴
- 学习点滴
- 插入排序,冒泡排序,选择排序
- mysql5.7 json类型字段中文乱码
- Android资源文件res下文件夹的后缀,适配不同屏幕。
- 表格分页
- QuartzCore.framework 框架CALayer Animation
- python学习点滴
- 95. Unique Binary Search Trees II
- MySQL查询结果另外自带一列自增序列号
- 移动前端开发之viewport的深入理解
- android:使用BaseExpandableListAdapter实现可折叠的列表
- iOS 面试中遇到的部分问题及简单答案(1)->(陆续更新)
- Apache Ignite之集群应用测试
- XML文件转换成字符串互相转换操作
- 背景色根据状态更改颜色 android:backgroup