pip国内的一些镜像
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
命令
pip3 install pysmb -i http://pypi.douban.com/simple
错误: The repository located at pypi.douban.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 pypi.douban.com'.
修改命令:
pip3 install pysmb -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
等待下载安装完成。Requirement already satisfied: pyasn1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages