Redundant installations of packages available through system package managers Larger virtual environments with unnecessary compilation overhead Missed opportunities for leveraging pre-compiled, ...
2. requirements.txtを作る 2.1 自力で作る場合 地味に面倒なのがrequirements.txtの作成。今回のclumpiはどうせnumpy、pandas、matplotlibしか使ってないので、僕みたいにわざわざpipreqsなんて使うほどでもない(あるいはちゃんと整理したい)なら、Colab上の%%fileコマンドで書いて吐き出せばいい。
でrequirements.txtが作成できる。 しかし、依存関係を考慮した出力になっていない? 煩雑なrequirements.txtになる。 煩雑なrequirements.txtはエラーが起きがち。 そうなると手作業でrequirements.txtを修正する必要がある。 開発環境の再現が面倒になる。 そこで整理され ...
The requirements.txt contains all the libraries used for the project. # To generate requirements.txt pip3 install pipreqs python -m pipreqs.pipreqs . The webscrape.py ...