威海百度网站建设,新手建设网站,如何将网站部署到服务器,为什么wordpress有cookie这是另一种方式。
搜索到的安装库的方式多数是#xff1a;在桌面上winR键运行终端#xff0c;输入命令#xff0c;安装不了#xff0c;发现安装不了。
1、打开pycharm#xff1b; 2、软件下部的Terminal终端(需要运行一个代码才能出现#xff0c;任何代码都可)#xf…这是另一种方式。
搜索到的安装库的方式多数是在桌面上winR键运行终端输入命令安装不了发现安装不了。
1、打开pycharm 2、软件下部的Terminal终端(需要运行一个代码才能出现任何代码都可) 3、有时候使用默认的官方网址下载安装包网速较慢或者出现connection timeou报错。这时我们可以使用-i参数修改成从国内镜像下载安装。国内几个pip源网址如下 清华https://pypi.tuna.tsinghua.edu.cn/simple 阿里http://mirrors.aliyun.com/pypi/simple/ 豆瓣http://pypi.douban.com/simple/ 华中理工大学http://pypi.hustunique.com/ 山东理工大学http://pypi.sdutlinux.org/ 中国科学技术大学http://pypi.mirrors.ustc.edu.cn/
4、安装命令pip install 模块名 -i 国内源 其他安装命令pip3 install 模块名or -i 国内源
5、pip升级到7.0以后在使用http镜像进行包安装及升级的时候往往会有如下提示
Collecting beautifulsoup4 The repository located at xxx.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host xxx.com’.
这时候根据提示在最后添加–trusted-host 镜像官网即可。 例如 pip install 模块名 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com