Pythonで記述された高速シンプルな静的Webサイト及びブログジェネレーター「Nikola」のインストールのインストールについて解説しています。
「Nikola(https://getnikola.com/,https://github.com/getnikola/nikola)」は、MarkdownとreStructuredTextをサポートする静的サイトジェネレーターです。
■Python
今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)
■Nikolaをインストールする
Nikolaをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。
pip install Nikola
起動後、上記のコマンドを入力し、Enterキーを押します。
なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。
py -3.8 -m pip install Nikola
切り替えるために、上記のコマンドを入力し、Enterキーを押します。
Defaulting to user installation because normal site-packages is not writeable Collecting Nikola Downloading Nikola-8.2.2-py3-none-any.whl (1.4 MB) ---------------------------------------- 1.4/1.4 MB 2.4 MB/s eta 0:00:00 Requirement already satisfied: Markdown>=3.0.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (3.3.4) Requirement already satisfied: docutils>=0.13 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (0.17.1) Requirement already satisfied: Pygments>=1.6 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (2.12.0) Requirement already satisfied: Babel>=2.6.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (2.9.1) Requirement already satisfied: setuptools>=24.2.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (62.3.1) Requirement already satisfied: lxml>=3.3.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (4.8.0) Collecting PyRSS2Gen>=1.1 Downloading PyRSS2Gen-1.1.tar.gz (6.9 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: python-dateutil>=2.6.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (2.8.2) Collecting Yapsy>=1.11.223 Downloading Yapsy-1.12.2.tar.gz (83 kB) ---------------------------------------- 84.0/84.0 kB 4.6 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: blinker>=1.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (1.4) Collecting mako>=1.0.0 Downloading Mako-1.2.0-py3-none-any.whl (78 kB) ---------------------------------------- 78.4/78.4 kB 2.1 MB/s eta 0:00:00 Requirement already satisfied: natsort>=3.5.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (7.0.1) Requirement already satisfied: requests>=2.2.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (2.27.1) Collecting doit>=0.32.0 Downloading doit-0.36.0-py3-none-any.whl (85 kB) ---------------------------------------- 85.9/85.9 kB 2.4 MB/s eta 0:00:00 Requirement already satisfied: unidecode>=0.04.16 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (1.3.4) Requirement already satisfied: Pillow>=2.4.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Nikola) (9.1.1) Collecting piexif>=1.0.3 Downloading piexif-1.1.3-py2.py3-none-any.whl (20 kB) Requirement already satisfied: pytz>=2015.7 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Babel>=2.6.0->Nikola) (2021.3) Collecting cloudpickle Downloading cloudpickle-2.1.0-py3-none-any.whl (25 kB) Requirement already satisfied: importlib-metadata>=4.4 in c:\users\user_\appdata\roaming\python\python38\site-packages (from doit>=0.32.0->Nikola) (4.11.3) Requirement already satisfied: MarkupSafe>=0.9.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from mako>=1.0.0->Nikola) (2.0.1) Requirement already satisfied: six>=1.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from python-dateutil>=2.6.0->Nikola) (1.16.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests>=2.2.0->Nikola) (1.26.9) Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests>=2.2.0->Nikola) (2.0.12) Requirement already satisfied: idna<4,>=2.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests>=2.2.0->Nikola) (3.3) Requirement already satisfied: certifi>=2017.4.17 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests>=2.2.0->Nikola) (2021.10.8) Requirement already satisfied: zipp>=0.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from importlib-metadata>=4.4->doit>=0.32.0->Nikola) (3.6.0) Building wheels for collected packages: PyRSS2Gen, Yapsy Building wheel for PyRSS2Gen (setup.py) ... done Created wheel for PyRSS2Gen: filename=PyRSS2Gen-1.1-py3-none-any.whl size=4969 sha256=71dfc630a9bb02e1b99f993b993f633018cad9262915162b4c199bc6a0534440 Stored in directory: c:\users\user_\appdata\local\pip\cache\wheels\bfe\da\ae737eed8571fd12cda587823af906e5bf4db0a43091017602 Building wheel for Yapsy (setup.py) ... done Created wheel for Yapsy: filename=Yapsy-1.12.2-py3-none-any.whl size=39012 sha256=83cec1300481eb26bc306cb44a2345c5ae328a1c7188b73602e6b019297bb50e Stored in directory: c:\users\user_\appdata\local\pip\cache\wheels\da\b4\b70e17e7611250b358a234e4fa4010d08228ef0e46015f61ea Successfully built PyRSS2Gen Yapsy Installing collected packages: Yapsy, PyRSS2Gen, piexif, mako, cloudpickle, doit, Nikola Successfully installed Nikola-8.2.2 PyRSS2Gen-1.1 Yapsy-1.12.2 cloudpickle-2.1.0 doit-0.36.0 mako-1.2.0 piexif-1.1.3
Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、Nikolaが正常にインストールされたことになります。
なお、今回はNikolaのバージョン8.2.2をインストールしました。
コメント