Python开发中遇到一些问题记录

环境Python3.5 Mac os

1、[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1

原因是 Python.org sites 终止支持TLS1.0和1.1,TLS需要>=1.2

解决方案 参考链接
http://www.qingpingshan.com/m/view.php?aid=384613
https://stackoverflow.com/questions/49768770/not-able-to-install-python-packages-ssl-tlsv1-alert-protocol-version

curl https://bootstrap.pypa.io/get-pip.py | python3

2、安装虚拟环境

pip3 install virtualenv

有可能virtualenv路径不对

ln 连接一些

sudo ln -s /Library/Frameworks/Python.framework/Versions/3.5/bin/virtualenv /usr/local/bin/virtualenv

创建虚拟环境

virtualenv venv 

激活环境

source venv/bin/activate

退出环境

deactivate

3、安装opencv3

参考链接: 这个比较正确和详细
https://blog.csdn.net/willduan1/article/details/53898440

4、图片相似度对比的相关资料

代码

https://github.com/MashiMaroLjc/Learn-to-identify-similar-images
https://gist.github.com/attilaolah/1940208 2.x的版本
https://gist.github.com/hfeeki/d710f2751428975448a4
https://github.com/JohannesBuchner/imagehash

文章

https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/
https://blog.csdn.net/zouxy09/article/details/7929348 HOG特征值
https://blog.csdn.net/qq_18808965/article/details/73997360
http://yshblog.com/blog/43 python3 关于dhash 和 phash的code

  • opencv打开网络图片

5、使用 python 编写restulful api

入门文档
http://www.pythondoc.com/flask-restful/first.html

6、 Centos 7下环境搭建

Centos 7 上安装Python3.5
安装opencv
https://www.fangc.xyz/detail/centos7an-zhuang-opencv3/
https://www.cnblogs.com/uestc-mm/p/7338244.html

7 、 Flask+uWSGI+Nginx 部署笔记

8 、python 机器学习

https://blog.csdn.net/c406495762/article/details/75172850
python 爬虫
https://blog.csdn.net/column/details/15321.html

你可能感兴趣的:(Python开发中遇到一些问题记录)