#author("2024-04-20T15:21:36+09:00","default:irrp","irrp")
#author("2024-04-23T22:15:23+09:00","default:irrp","irrp")
→Python関連

#contents


*一般 [#ffaf63ff]
-[[僕の考えた最強の Python 開発環境 (2024)>https://zenn.dev/koki_algebra/articles/cd3341bcba9272]] 2024.4
--Rye,Ruff,mypy,pytest

-[[【初心者OK】python-dotenvで環境設定ファイルを読み込む | ジコログ>https://self-development.info/%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85ok%e3%80%91python-dotenv%e3%81%a7%e7%92%b0%e5%a2%83%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80/]] 2024.2

-[[Pythonでの開発を効率的に進めるためのツール設定 | PPT>https://www.slideshare.net/aodag/python-172432039]] 2019
--flake8,black,mypy,pytest,tox


-[[pythonで環境構築の為にきれいなrequirements.txtを作成する方法 ->https://www.subcul-science.com/post/20210317pipreq/]] 2021
--pipreqs

-[[主にVSCodeではじめるPython開発環境構築ガイド | DevelopersIO>https://dev.classmethod.jp/articles/python-vscode-plugin/]] 2023.10

-[[How to fix importerror: dll load failed while importing aggregations: the specified module could not be found in Python? - StackTuts>https://stacktuts.com/how-to-fix-importerror-dll-load-failed-while-importing-aggregations-the-specified-module-could-not-be-found-in-python]] 2023.3

-[[python - Explain why numpy should not be imported from source directory - Stack Overflow>https://stackoverflow.com/questions/14570011/explain-why-numpy-should-not-be-imported-from-source-directory]] 2013

-[[Python Tips: Docker で Python を使うときに有用な環境変数まとめ - Life with Python>https://www.lifewithpython.com/2021/05/python-docker-env-vars.html]] 2023.9

-[[Pythonツール・ライブラリ2選 ~私、気になります!~ - 虎の穴開発室ブログ>https://toranoana-lab.hatenablog.com/entry/2023/07/04/100000]] 2023.7
--Rye


-[[Windows で Python 実行時に Microsoft Store が起動する問題の対処方法 | Lonely Mobiler>https://loumo.jp/archives/26344]] 2023.4

-[[俺流!PEP668とうまくやっていく方法 | スクエニ ITエンジニア ブログ>https://blog.jp.square-enix.com/iteng-blog/posts/00043-play-with-the-pep668/]] 2023.4

-[[機械学習エンジニアの悩み毎:pythonのバージョン問題 - Qiita>https://qiita.com/k1morikawa@github/items/c57e79b4017fa8209efb]] 2022.12

-[[2022年度版Python環境構築徹底解説 - Qiita>https://qiita.com/kjm_nuco/items/733d67ff39acb41839f2]] 2022.12

-[[研究のためのPython開発環境>https://zenn.dev/zenizeni/books/a64578f98450c2]] 2022.11

-[[【Windows】Python 3.11のインストール | ジコログ>https://self-development.info/%e3%80%90windows%e3%80%91python-3-11%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/]] 2022.10

-[[pyenv, virtualenv, pipenv, poetry の概要 - サーバーワークスエンジニアブログ>https://blog.serverworks.co.jp/pyenv-virtualenv-pipenv-poetry]] 2022.10


*pip/パッケージ管理と配布 [#i8bcbe06]

-パッケージをリセットするには
--pip freeze > piplist.txt
--pip uninstall -y -r piplist.txt

-[[Pythonライブラリ管理ツール決定版!Ryeを導入してみた>https://zenn.dev/ncdc/articles/1979def94dedea]] 2024.4

-[[Pythonのパッケージ管理をpoetryからryeへ移行した手順のメモ>https://zenn.dev/ncdc/articles/ac66eaec6046ee]] 2023.10

-[[Pythonのパッケージ管理の中級者の壁を超える stapy#98 - Speaker Deck>https://speakerdeck.com/vaaaaanquish/pythonnopatukeziguan-li-nozhong-ji-zhe-nobi-wochao-eru-stapy-number-98]] 2023.10

-[[【Pythonのパッケージ管理に悩む方へ】パッケージ管理ツールRyeを使ってみた | DevelopersIO>https://dev.classmethod.jp/articles/get-start-rye-python/]] 2023.10

-[[Python でパッケージを開発して配布する標準的な方法 2023 年編 - Qiita>https://qiita.com/propella/items/5cd89caee6379920d889]] 2023.10

-[[Pythonのパッケージングと配布の全体像>https://zenn.dev/zerebom/articles/60d5ad4b18c901]] 2023.6

-[[[Python] pip installが依存関係を解決する挙動について調べてみた | DevelopersIO>https://dev.classmethod.jp/articles/pip-requirements-resolve-dependency/]] 2023.6

-[[【pip】 Python3をアップデートしたら詰まった話 - Qiita>https://qiita.com/kagami_t/items/ccc89a9a403c196b69d6]] 2023.4

-[[Pythonのパッケージ管理ベストプラクティス - Qiita>https://qiita.com/c60evaporator/items/b6a7394231d1e768ce64]] 2023.3

-[[Python パッケージングの標準を知ろう - Tech Blog - Recruit Engineer>https://blog.recruit.co.jp/rls/2019-12-25-python-packaging-specs/]] 2019

-[[PEP 427 – The Wheel Binary Package Format 1.0 | peps.python.org>https://peps.python.org/pep-0427/]] 2012
--dist-info/RECORDファイルにそのパッケージでインストールしたファイルのパスの一覧が入っている。

-[[Python Packaging Authority — PyPA documentation>https://www.pypa.io/en/latest/]] 
--[[An Overview of Packaging for Python — Python Packaging User Guide>https://packaging.python.org/en/latest/overview/]] 


*venv [#d443eddc]
-[[VS CodeでPythonの仮想環境を構築する(windows) #Python - Qiita>https://qiita.com/miyaaa/items/6136d530e0ee51298987]] 2024.4

-[[【コマンドで簡単】Pythonでvenvを使って仮想環境を利用する | ジコログ>https://self-development.info/%e3%80%90%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e7%b0%a1%e5%8d%98%e3%80%91python%e3%81%a7venv%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e4%bb%ae%e6%83%b3%e7%92%b0%e5%a2%83%e3%82%92%e5%88%a9%e7%94%a8/]] 2023.12

-[[VSCodeでプロジェクト用のPython仮想環境をvenvで準備する #Python - Qiita>https://qiita.com/enya314/items/0e62b68fe70f52a628bf]] 2020

-[[Pythonの開発環境の3つの観点をおさえよう>https://zenn.dev/os1ma/articles/935f6e653f1052]] 2023.9
--Python のバージョン指定
--仮想環境
--パッケージ管理

-[[Pythonの「仮想環境」を完全に理解しよう - Speaker Deck>https://speakerdeck.com/os1ma/pythonno-jia-xiang-huan-jing-wowan-quan-nili-jie-siyou]] 2023.9

-[[venv --- 仮想環境の作成>https://docs.python.org/ja/3/library/venv.html]] 2021.8
--venv モジュールは、軽量な "仮想環境" の作成のサポートを提供します。仮想環境には、仮想環境ごとの site ディレクトリがあり、これはシステムの site ディレクトリから分離させることができます。それぞれの仮想環境には、それ自身に (この仮想環境を作成するのに使ったバイナリのバージョンに合った) Python バイナリがあり、仮想環境ごとの site ディレクトリに独立した Python パッケージ群をインストールできます。


*Poetry [#u454044b]
-[[【Windows】Poetry + pyenvでPython環境構築 - Qiita>https://qiita.com/asahina820/items/6bd7761d50d3aacaff12]] 2023.10

-[[Poetryをサクッと使い始めてみる - Qiita>https://qiita.com/ksato9700/items/b893cf1db83605898d8a]] 2021
-[[ゼロから始めるPoetry - Mirai Translate TECH BLOG>https://miraitranslate-tech.hatenablog.jp/entry/starting-from-scratch-poetry]] 2022.12
-[[【R&D DevOps通信】Poetry1.2でプライベートパッケージを扱う(GitHub, AWS CodeArtifact, GCP Artifact Registry) - Sansan Tech Blog>https://buildersbox.corp-sansan.com/entry/2022/11/14/110000]] 2022.11
-[[pyenvとpoetryでディレクトリ毎にPython環境を切り替える手順+ノウハウまとめ | DevelopersIO>https://dev.classmethod.jp/articles/pyenv-and-poetry/]] 2022.10


*Anaconda [#b9a9e0e7]
-[[M.S.Windows にAnaconda3(python3)を 2019年版 - Qiita>https://qiita.com/kaizen_nagoya/items/c05c0d690fcfd3402534]] 2020.12

-[[なぜdockerでpython/Rを使って機械学習するか 書籍・ソース一覧作成中 (目標100) docker(18) - Qiita>https://qiita.com/kaizen_nagoya/items/ddd12477544bf5ba85e2]] 2021.11

-[[M.S.WindowsにPython3 (Anaconda3) を導入する(7つの罠) - Qiita>https://qiita.com/kaizen_nagoya/items/7bfd7ecdc4e8edcbd679]] 2021.5

-[[Anaconda Distribution Download>https://www.continuum.io/downloads]] 2017.7

-[[Anaconda で Python 環境をインストールする>http://qiita.com/t2y/items/2a3eb58103e85d8064b6]]


*Amazon linux 上でのpython開発環境 [#y6d2489f]
→AWSの開発支援系サービス

-python -m sysconfig コマンド
--Pythonのモジュールとして提供されている sysconfig モジュールを実行するコマンドです。
--このコマンドを実行すると、Pythonのビルド構成やインストールに関する情報を表示できます。
--具体的には、以下のような情報を表示することができます:
 プラットフォーム固有のビルドオプション
 インストールされたPythonのバージョン情報
 モジュールのインストールディレクトリやライブラリディレクトリのパス
 コンパイラやリンカの設定情報
 インストール済みのPythonモジュールのリストなど


-[[AmazonLinux2でPython3環境構築 #Python - Qiita>https://qiita.com/hiren/items/17984191da2ab8955174]] 2020

-AL2023のPython(2023.10時点)
 [ec2-user@ip-xxx ~]$ yum info python3
 Amazon Linux 2023 repository                                                                                           34 MB/s |  18 MB     00:00
 Amazon Linux 2023 Kernel Livepatch repository                                                                         707 kB/s | 160 kB     00:00
 Installed Packages
 Name         : python3
 Version      : 3.9.16
 Release      : 1.amzn2023.0.5
 Architecture : x86_64
 Size         : 33 k
 Source       : python3.9-3.9.16-1.amzn2023.0.5.src.rpm
 Repository   : @System
 Summary      : Python 3.9 interpreter
 URL          : https://www.python.org/
 License      : Python
 Description  : Python 3.9 is an accessible, high-level, dynamically typed, interpreted
              : programming language, designed with an emphasis on code readability.
              :  It includes an extensive standard library, and has a vast ecosystem of
              : third-party libraries.
              :
              : The python3 package provides the "python3" executable: the reference
              : interpreter for the Python language, version 3.
              : The majority of its standard library is provided in the python3-libs package,
              : which should be installed automatically along with python3.
              : The remaining parts of the Python standard library are broken out into the
              : python3-tkinter and python3-test packages, which may need to be installed
              : separately.
              :
              : Documentation for Python is provided in the python3-docs package.
              :
              : Packages containing additional libraries for Python are generally named with
              : the "python3-" prefix.

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS