-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add python pip setuptools & update TELEMAC-MASCARET
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## pip pip3 替换国内镜像源 | ||
- 在采用默认 pip3 安装第三方库的时候,经常会出现超时的情况。 | ||
|
||
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. | ||
这时候就需要替换镜像源为国内的镜像源了。 | ||
- 国内的pip源 | ||
- 阿里云:https://mirrors.aliyun.com/pypi/simple/ | ||
- 清华:https://pypi.tuna.tsinghua.edu.cn/simple | ||
- 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ | ||
- 华中理工大学:http://pypi.hustunique.com/ | ||
- 山东理工大学:http://pypi.sdutlinux.org/ | ||
- 豆瓣:http://pypi.douban.com/simple/ | ||
- 临时更换镜像源 | ||
|
||
pip3 install 库名 -i 镜像地址 | ||
- 解决报错:error: metadata-generation-failed | ||
|
||
|
||
pip install kiwisolver==1.2.0 --use-deprecated=legacy-resolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## 打包分发工具setuptools | ||
- setuptools是python标准的打包分发工具,它可以将我们编写的python项目打包安装,这样其他同事就可以像调用标准库或python第三方库那样直接使用;也可以将项目上传到Pypi供更多人的下载安装使用。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters