-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,43 @@ | ||
# python | ||
My attempt to consolidate my python Know-how. | ||
This is an attempt to consolidate my python Know-how. | ||
|
||
## Setup Python Environment | ||
|
||
### Debian Bullseye | ||
|
||
#### Compilation for Debian Bullseye | ||
|
||
According to [install-dependencies](https://devguide.python.org/setup/#install-dependencies) build dependencies can be installed as follows: | ||
> apt build-dep python3.9 | ||
Next according to README.rst type: | ||
> ./configure --prefix="/home/shb/python-3.9.1" --enable-optimizations | ||
> make | ||
> make test | ||
> ...snip | ||
> | ||
> == Tests result: SUCCESS == | ||
> | ||
> 411 tests OK. | ||
> | ||
> 14 tests skipped: | ||
> test_devpoll test_gdb test_ioctl test_kqueue test_msilib | ||
> test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly | ||
> test_winconsoleio test_winreg test_winsound test_zipfile64 | ||
> | ||
> Total duration: 7 min 46 sec | ||
> Tests result: SUCCESS | ||
> make install | ||
In case command above does not do the trick install these packages: | ||
> build-essential bzip2-doc libbz2-dev libffi-dev libgdbm-dev libncurses-dev libnss3-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev liblzma-dev tk-dev | ||
#### Setting Up a Virtual Environment | ||
Install pip and virtualenv: | ||
> python3-pip python3-virtualenv | ||
Set up virtual environment: | ||
> mkdir ~/venv-play-python | ||
> | ||
> virtualenv -p ~/python-3.9.1/bin/python3 venv-play-python | ||