🪴 notes

Search

Search IconIcon to open search

working with python

Published Jul 20, 2023 Last updated Aug 10, 2023 Edit Source

version manager: pyenv

environment manager: virtualenv

package manager: huak

bundler: pyinstaller

pyenv pip problem https://github.com/pyenv/pyenv-virtualenv/issues/410#issuecomment-1191203446

dev:

1
2
3
4
5
6
7
$ pyenv install [version]
$ pyenv virtualenv [version] [envname]
$ pyenv activate [envname] #could use huak here maybe
(envname)$ pip install [package]
(envname)$ pip install pyinstaller
(envname)$ pip freeze >> requirements.txt
(envname)$ pyenv deactivate

packaging:

1
(envname)$ pyinstaller [entryfile] --onefile

should output an executable in the dist directory