さくらレンタルサーバを(スタンダード)使用しています。
https://notemite.com/python/scraping-with-sakura-rental/
こちらを参考に、
Python 3.9.0 をインストールしました。
pipインストールリスト
pip3 list
Package Version
pip 22.0.4
setuptools 49.2.1
仮想環境のパスに入り起動した後、
% cd scraping_venv
% source bin/activate.csh
pipインストールリスト
(scraping_venv) % pip3 list
Package Version
beautifulsoup4 4.10.0
certifi 2021.10.8
charset-normalizer 2.0.12
idna 3.3
pip 22.0.4
requests 2.27.1
setuptools 60.10.0
soupsieve 2.3.1
urllib3 1.26.9
ここに追加で、lxmlをインストールしようとすると・・・
(scraping_venv) % pip3 install lxml
Collecting lxml
Using cached lxml-4.8.0.tar.gz (3.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py
since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
以上のメッセージが出てインストールできません。
lxmlのバージョンを指定する必要があるのでしょうか?
回答1件
あなたの回答
tips
プレビュー