官网下载python安装包 下载后安装即可。
安装成功后
pip将第三方库/模块引入到自己的项目。
命令行中输入pip可查看帮助
这里两条语句得到的结果都是相同的
(base) ~ % pip --version pip 20.0.2 from /Users/wdhong/opt/anaconda3/lib/python3.7/site-packages/pip (python 3.7) (base) ~ % pip -V pip 20.0.2 from /Users/wdhong/opt/anaconda3/lib/python3.7/site-packages/pip (python 3.7)另外: pip -V 和pip -v是不一样的
(base) ~ % pip -V pip 20.0.2 from /Users/wdhong/opt/anaconda3/lib/python3.7/site-packages/pip (python 3.7) (base) ~ % pip -v Usage: pip <command> [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit.python -v 小写v:这是版本信息,包括库版本 python -V 大写V:只看python的版本
转载于:天高任我飞
豆瓣 :http://pypi.douban.com/simple/ 阿里 :http://mirrors.aliyun.com/pypi/simple/ 中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple 清华:https://pypi.tuna.tsinghua.edu.cn/simple 例如:
pip install SomePackage -i https://pypi.tuna.tsinghua.edu.cn/simple官网获取 下载后自行安装
1、主题修改 File–settings–apperance–theme 2、代码字体修改 File–settings–Editor-Font 3、关闭更新 File–settings—apperance—System Settings —Updates — Automatically check updates for 取消打钩 4、快捷键修改 File–settings—apperance-- Keymap 选择自己习惯的快捷键方式 5、自动导包 File–settings—apperance–General —Auto Import 打钩 6、进制打开上次的工程 File–settings—apperance—System Settings —Reopen last project startup 7、修改新建文件文件头 File–settings–Editor—Code Style — File and Code Templates — Python Script #!/usr/bin/env python # -- coding: utf-8 -- # @Time : ${DATE} ${TIME} # @Author : 壹贰伍 # @File : ${NAME}.py # @Software: ${PRODUCT_NAME} 8、修改字体编码 File–settings–Editor—Code Style — File Encoding — Project Encoding