Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

python学习

wnh5 edited this page Nov 16, 2017 · 10 revisions

1.mac pip安装出错:

DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
关闭"SIP"解决
点击Mac电脑的苹果图标
选择 重新启动
按住 command+R,直到进入还原模式
选择实用工具,然后点击 终端
输入 csrutil disable 按下回车
重启电脑

2.opencv安装

wget https://github.com/Itseez/opencv/archive/2.4.13.zip
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local-D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
make -j4表示开4个线程来进行编译
sudo make install

3.https链接

conn = httplib.HTTPSConnection(self.url_host)
sock = socket.create_connection((conn.host, conn.port))
conn.sock = ssl.wrap_socket(sock, conn.key_file, conn.cert_file, ssl_version=ssl.PROTOCOL_TLSv1)

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /