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 10, 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安装

mkdir build
cd build
wget https://github.com/Itseez/opencv/archive/2.4.13.zip
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

Clone this wiki locally

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