教程集 www.jiaochengji.com
教程集 >  Python编程  >  Python入门  >  正文 python怎么安装扩展包

python怎么安装扩展包

发布时间:2021-05-16   编辑:jiaochengji.com
教程集为您提供python怎么安装扩展包等资源,欢迎您收藏本站,我们将为您提供最新的python怎么安装扩展包资源

以安装扩展包SymPy为例:

方式一:

格式:

pip install xxx //xxx:包名

示例:

pip install SymPy

相关推荐:《Python教程》

方式二:

如果有安装Git,也可以使用pip git的方式安装:

pip install git xxx.git      //xxx:包所在的github仓库位置

示例:

pip install git https://github.com/sympy/sympy.git

方式三:

在github上面下载对应的压缩包,解压缩之后,文件夹下会有setup.py文件,从命令行窗口进入该文件夹,然后输入命令:

python setup.py install

方式四:

使用.whl文件安装,步骤:

1. 打开命令行窗口,进入下载的whl包所在的目录

2. 输入如下命令,xxx为要按照的包的名称

Python -m pip install -U xxx

注:Python扩展库可以在如下网站下载:http://www.lfd.uci.edu/~gohlke/pythonlibs/

示例:

1. SymPy库所在目录:

2. 安装SymPy

您可能感兴趣的文章:
怎么安装python的扩展库
python怎么安装扩展包
mac怎么安装python
python怎么显示行号
python setup.py install是什么意思
在vscode中编写Python的详细步骤
python怎么安装flask
flask怎么安装
edge浏览器怎么安装插件?edge浏览器安装插件方法
学python要用什么软件

[关闭]
~ ~