python包安装笔记-pip install

进入D盘安装目录

解决警告:
WARNING: You are using pip version 20.3.3; however, version 21.0.1 is available.
You should consider upgrading via the 'd:\program files\python37\python.exe -m pip install --upgrade pip' command.

window+R进入命令模式

D:
D:\>python -m pip install --upgrade pip
Requirement already satisfied: pip in d:\program files\python37\lib\site-packages (20.3.3)
Collecting pip
  Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
     |████████▌                       | 409 kB 11 kB/s eta 0:01:38

升级后回到C盘,继续安装

D:\>C:

C:\Users\Pika>pip install selenium

踩过的坑

1、Python程序
https://www.python.org/downloads/windows/

2、Python编译器 pycharm
http://www.jetbrains.com/pycharm/download/#section=windows

3、pycharm中Non-ASCII character '\xe6' in file"错误解决方法
# encoding: utf-8
# coding:utf-8

4、python版本升级
卸载,安装新版本

5、第三方库安装
使用pip命令,从whl文件安装https://pypi.org/
下载文件:https://pypi.org/project/pandas/0.19.2/

安装:
Win+R调出系统终端命令行
cd C:\Users\HP\Desktop(文件路径)
pip install pandas-0.19.2-cp27-cp27m-win32——安装失败,无需下载,在线安装
升级pip  python -m pip  install --upgrade pip
已安装——在线安装 pip install pandas-OK
已安装——在线安装交互开发库 pip install ipython-OK
已安装——在线安装pip install numpy-OK
已安装——在线安装pip install scipy-OK
已安装——在线安装pip install matplotlib-OK
已安装——在线安装pip install sklearn-ok---按顺序安装
已安装——在线安装pip install statsmodels
已安装——在线安装pip install beautifulsoup4
已安装——在线安装pip install PIL——安装失败(P15)
已安装——在线安装pip install scikit-learn
已安装——在线安装pip install requests  -i  http://pypi.douban.com/simple --trusted-host=pypi.douban.com
OpeCV未安装
pip uninstall numpy,卸载了numpy==1.9.3(解决'python -m pip install --upgrade pip' 报错问题https://blog.csdn.net/cxs123678/article/details/80659273)

padas tips

padas_ https://www.cnblogs.com/xiaoxuebiye/p/7223774.html
导入数据
pd.read_csv(filename):从CSV文件导入数据
pd.read_table(filename):从限定分隔符的文本文件导入数据
pd.read_excel(filename):从Excel文件导入数据
pd.read_sql(query, connection_object):从SQL表/库导入数据
pd.read_json(json_string):从JSON格式的字符串导入数据
pd.read_html(url):解析URL、字符串或者HTML文件,抽取其中的tables表格
pd.read_clipboard():从你的粘贴板获取内容,并传给read_table()
pd.DataFrame(dict):从字典对象导入数据,Key是列名,Value是数据

你可能感兴趣的:(笔记)