システム Python を使うことができる(その場合,Python のインストールは行わない)
システム Python を用いるときは,pip, setuptools の更新は次のコマンドで行う.
sudo apt -y update sudo apt -y install python3-pip python3-setuptools
Ubuntu で,システム Python 以外の Python をインストールしたい場合は pyenv が便利である: 別ページで説明している.
Python の URL: http://www.python.org/
【Python, pip の使い方】
Python, pip は,次のコマンドで起動できる.
【Python 開発環境のインストール】
JupyterLab, spyder, nteract (Python 開発環境) のインストールは, Windows でコマンドプロンプトを管理者として実行し, 次のコマンドを実行.
python -m pip install -U pip setuptools jupyterlab jupyter jupyter-console jupytext nteract_on_jupyter spyder
詳しくは,: 別ページで説明している.
JupyterLab, spyder, nteract (Python 開発環境) のインストール: : 別ページで説明している.
Git の URL: https://git-scm.com/
Windows での マイクロソフト C++ ビルドツール (Build Tools) のインストール: 別ページで説明している.
※ Windows では「python」,Ubuntu では「sudo python3 -m pip」
python -m pip install -U opencv-python
https://github.com/xianyi/OpenBLAS/wiki/Installation-Guide の記述による
kitware/nijna の説明は https://github.com/Kitware/ninja
conda install -y -c conda-forge clangdev conda config --remove channels conda-forge conda install -y -c isuruf kitware-ninja conda config --remove channels isuruf
clang --version flang --version
起動は,Windows のメニューで「Visual Studio 20..」の下の「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」を選ぶ.「x64」は,64ビット版の意味である.
「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」がないとき:
C++ ビルドツール (Build Tools) のインストールを行うことで, 「x64 Native Tools コマンドプロンプト (x64 Native Tools Command Prompt)」がインストールされる.その手順は,別ページで説明している.
mkdir c:\tools cd c:\tools rmdir /s /q bm3d
cd c:\tools git clone https://github.com/gfacciol/bm3d cd bm3d
Ninja を使うように設定している
cd c:\tools cd bm3d del CMakeCache.txt rmdir /s /q build mkdir build cd build c:\tools\msys64\mingw64\bin\cmake -G "Ninja" ..
cmake --build . --config release
※ 「conda install」は、パッケージをインストールするためのコマンド
conda install -y setuptools cython numpy scikit-image
※ PyBM3D については https://github.com/ericmjonas/pybm3d
mkdir c:\pytools cd c:\pytools rmdir /s /q pybm3d
cd c:\pytools git clone https://github.com/ericmjonas/pybm3d cd pybm3d rmdir /s /q bm3d_src mkdir bm3d_src xcopy /s c:\tools\bm3d bm3d_src
cd c:\pytools cd pybm3d copy c:\tools\Anaconda3\pkgs\fftw-3.3.8-hfa6e2cd_1001\Library\include\fftw3.h c:\pytools\pybm3d\bm3d_src python setup.py build python setup.py install
Windows のコマンドプロンプトで、次のコマンドを実行
python -c "import pybm3d; print( pybm3d.__version__ )"