当前位置: 首页 > news >正文

公司做的网站列入什么科目河北承德网

公司做的网站列入什么科目,河北承德网,手机app开发工具中文版,建设平台型网站多少钱目录 一、命令列表 二、通用选项列表 三、常用操作 1.使用 requirements.txt 安装包 2.生成requirements.txt文件 3.pip升级命令 4.开启向后不兼容的新功能 5.启用已弃用的功能 四、pip换源 1.临时使用pip源方法 2.永久修改方法 一、命令列表 命令说明实例install安…

目录

一、命令列表

二、通用选项列表

三、常用操作

1.使用 requirements.txt 安装包

2.生成requirements.txt文件

3.pip升级命令

4.开启向后不兼容的新功能

5.启用已弃用的功能

四、pip换源

1.临时使用pip源方法

2.永久修改方法


一、命令列表

命令说明实例
install安装包pip install numpy
download下载包pip download numpy
uninstall卸载包pip uninstall numpy
freeze以需求格式输出已安装的包pip freeze | tee requirements.txt
inspect检查python环境pip inspect
list列出已安装的软件包pip list
show显示已安装包的信息,包括版本,依赖,许可证,作者,主页等信息pip show numpy
check验证已安装的包具有兼容的依赖项pip check numpy
config管理本地和全局配置pip config list
cache检查和管理pip的whl缓存pip cache numpy
wheel将某个包及其依赖变成wheels,并存到指定文件夹

pip wheel --wheel-dir=/tmp numpy 

pip wheel --wheel-dir=/tmp -r requirements.txt

hash计算文件的哈希值
completion用于补全命令的辅助命令pip completion --bash >>~/.profile source ~/.profile
debug显示对调试有用的信息pip debug --verbose
help帮助pip help

二、通用选项列表

选项说明实例
 -h, --help命令的帮助信息pip install -h
--debug打印命令的异常等调试信息pip install numpy --debug 
--isolated在隔离模式下运行pip,忽略环境变量和用户配置
--require-virtualenv允许pip只在虚拟环境中运行;否则将报错退出
-v, --verbose提供更多的输出。最多可以使用3次(对应于WARNING、ERROR和CRITICAL日志级别)pip show -vvv numpy
-V, --version显示版本并退出pip  -V
-q, --quiet减少输出。最多可以使用3次(对应于WARNING、ERROR和CRITICAL日志级别)pip show -qqq numpy
--log <path>详细追加日志的路径pip show  numpy --log log.txt
--no-input禁用输入提示pip install --no-input -r host-requirements.txt
--proxy <proxy>在表单scheme中指定一个代理scheme://[user:passwd@]proxy.server:port
--retries <retries>每个连接尝试的最大重试次数(默认为5次)
--timeout <sec> 设置socket超时(默认为15秒)
--exists-action <action>下载文件或者生成文件时,当路径已经存在时的默认动作:(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort。
--trusted-host <hostname>将此host标记为受信任的,即使它没有有效的或任何HTTPSpip install open_clip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
 --cert <path>   pem编码CA证书包路径。如果提供,则覆盖默认值。有关更多信息,请参阅pip文档中的“SSL证书验证”。
--client-cert <path> SSL客户端证书路径,包含私钥和PEM格式证书的单个文件
--cache-dir <dir> 将缓存数据存储在<dir>pip install --cache-dir=/tmp -r requirements.txt
--no-cache-dir 禁用缓存
 --disable-pip-version-check不要定期检查PyPI,以确定是否有新版本的pip可供下载。使用之后不再提示升级pippip install numpy  --disable-pip-version-check
--no-color  抑制输出的彩色打印
--no-python-version-warning不对即将不支持的python进行警告
--use-feature <feature>启用可能向后不兼容的新功能pip install PyQt6-tools -i https://pypi.douban.com/simple --use-feature=2020-resolver
 --use-deprecated <feature>启用已弃用的功能,这些功能将在未来被删除pip install hanlp --use-deprecated=legacy-resolver

三、常用操作

1.使用 requirements.txt 安装包

pip install -r requirements.txt

2.生成requirements.txt文件

        生成 requirements.txt会用到freeze命令freeze命令和list命令很想,只是不会显示pip等无法用pip安装和卸载的包。

# windows生成requirements.txt
pip freeze > requirements.txt# linux生成requirements.txt
pip freeze | tee requirements.txt

3.pip升级命令

python -m pip install --upgrade pip

4.开启向后不兼容的新功能

ERROR: After October 2020 you may experience errors when installing or updating package s. This is because pip will change the way that it resolves dependency conflicts. We recommend you use --use-feature=2020-resolver to test your packages with the new res olver before it becomes the default.

        当出现类似上面的报错时,证明包有新的功能,但是可能会破坏一些现有的设置,所以这些新功能是默认关闭的,如果一定要使用这些新功能可以加入--use-feature参数并指定新的功能:

pip install example --use-feature=2020-resolver

5.启用已弃用的功能

        因为安装时有版本冲突,缺少某些方法,可以用--use-deprecated暂时解决。

pip is looking at multiple versions of urllib3 to determine which version is compatible with other requirements. This could take a while.

        如果安装rasa进入死循环找版本,一直报上面的错,可以这样:

pip install rasa -i http://mirrors.aliyun.com/pypi/simple/   --trusted-host mirrors.aliyun.com    --use-deprecated=legacy-resolver

        如果安装elenium报错error: metadata-generation-failed,可以这样

pip install selenium --use-deprecated=backtrack-on-build-failures

四、pip换源

ERROR: Could not find a version that satisfies the requirement tensorflow-hub (from versions: none)
ERROR: No matching distribution found for tensorflow-hub

        如果包下载慢或者出现上面的报错,可以试试换源。

1.临时使用pip源方法

        可以在使用pip的时候加参数 -i,如:

pip install open_clip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

2.永久修改方法

        linux下,修改 ~/.pip/pip.conf (没有就创建一个)

[global]
timeout = 600
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

        windows下,直接在user目录中创建一个pip目录,文件输入框:%USERPROFILE%,如:C:\Users\Administrator\pip,新建文件pip.ini,即:%USERPROFILE%\pip\pip.ini,内容如下:

[global]
timeout = 600
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

常用的源:

清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

http://www.yayakq.cn/news/329378/

相关文章:

  • 网站开发软件科技公司镇江手机网站建设
  • txt怎么做pdf电子书下载网站丰台成都网站建设
  • 网站设计如何做wordpress物流模板
  • 做网站设计累吗网站建设分工的通知
  • 青海省住房和城乡建设厅网站中国商标网官网入口
  • 网站建设的论文参考文献常德人才网
  • 长沙的网站建设公司建站广告
  • 网站搭建平台源码邵阳 做网站公司
  • 官方网站怎么推广如何提供网站建设公司
  • 搜狗网站入口大学网站建设方案书
  • 湖北专业网站建设维修电话创建网站的步骤是
  • 爱站网自媒体数据软件开发公司起名
  • 东莞电子网站建设宁波品牌网站制作哪家好
  • 网站服务器租赁价格最简单的企业网站
  • 类似于微博网站怎么做的网页设计个人网站下载
  • 六安网站建设 220做推广的网站带宽需要多少合适
  • 北京网站建设华大建设银行不良资产处置网站
  • 北京优化网站建设网站开发工作分解结构
  • 威海临港区建设局网站网络营销论文答辩提问
  • 语言网站开发平面设计找素材的网站
  • 微信上做网站怎么做wordpress 豆瓣评分
  • 天津建设网站天津市地铁规划图石家庄网站空间
  • 昌平区网站建设代理 指定网站 host
  • 长沙市做网站的网站房产网站系统哪个好
  • 百度收录检测seo是什么意思啊电商
  • 优秀企业网站建设哪家服务好怎么重新打开wordpress
  • visual studio做的网站手工做女宝宝衣服的网站
  • app网站的优点电子商务网站设计规划书
  • 重庆外贸网站建设公司什么是优化珍珠
  • 昆明网站建设推荐力鼎科技电商详情页设计思路