Skip to content

Commit abfd5b1

Browse files
committed
updated FirstTimeSetup.py for python3.12 version, updated reqs file to packages that are compatible with 3.12
List of packages used (and old packages (commented out)) are listed below, with description of why some packages were removed or changed (if relevant): setuptools==70.0.0 numpy==1.26.4 imagecodecs==2024.9.22 # imagecodecs==2021.8.26 magicgui==0.9.1 # magicgui==0.5.1 matplotlib==3.9.0 # matplotlib==3.4.0 openpyxl==3.1.5 # openpyxl==3.0.9 pandas==2.2.3 # pandas==1.3.5 pillow==10.3.0 # Pillow==9.3.0 PySide6==6.7.3 # https://wiki.qt.io/Qt_for_Python # https://stackoverflow.com/questions/75707701/why-i-can-not-install-pyside2 # pyside2==5.15.2.1 # Unable to function in py3.12 with distutils removal/deprecation # pystackreg==0.2.7 # pystackreg==0.2.7 QtPy==2.4.1 # qtpy==2.1.0 scikit-image==0.23.2 # scikit-image==0.18.3 seaborn==0.13.2 # seaborn==0.12.0 tifffile==2024.5.22 # tifffile==2021.11.2 wxPython==4.2.2 # wxpython==4.1.1 xlrd==2.0.1 # xlrd==2.0.1
1 parent 48041ca commit abfd5b1

File tree

2 files changed

+37
-17
lines changed

2 files changed

+37
-17
lines changed

PythonEnvForAivia/FirstTimeSetup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def run(params):
2828
env_dir.mkdir(parents=False, exist_ok=True)
2929
subprocess.check_call([str(Path(sys.executable).parent / 'Scripts/virtualenv.exe'), f'{env_dir}'])
3030

31-
# copy essential python packages(python39.zip) to virtual environment
31+
# copy essential python packages(python312.zip) to virtual environment
3232
# see https://github.com/pypa/virtualenv/issues/1185
33-
if not os.path.exists(env_dir/'Scripts/python39.zip'):
34-
copyfile(Path(sys.executable).parent / 'python39.zip', env_dir/'Scripts/python39.zip')
33+
if not os.path.exists(env_dir/'Scripts/python312.zip'):
34+
copyfile(Path(sys.executable).parent / 'python312.zip', env_dir/'Scripts/python312.zip')
3535

3636
# install requirements
3737
mess = 'Python packages will now be installed. An internet connection is needed.\n\n' \
@@ -41,6 +41,8 @@ def run(params):
4141

4242
pip_path = env_dir / 'Scripts' / 'pip.exe'
4343
requirement_dir = pathlib.Path(os.path.dirname(os.path.realpath(__file__)))
44+
# subprocess.check_call(
45+
# [str(pip_path), 'install', 'setuptools==70.0.0'])
4446
subprocess.check_call(
4547
[str(pip_path), 'install', '-r', str(requirement_dir/'requirements.txt')])
4648

PythonEnvForAivia/requirements.txt

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1-
imagecodecs==2021.8.26
2-
magicgui==0.5.1
3-
matplotlib==3.4.0
4-
numpy==1.22.0
5-
openpyxl==3.0.9
6-
pandas==1.3.5
7-
Pillow==9.3.0
8-
pyside2==5.15.2.1
9-
pystackreg==0.2.7
10-
qtpy==2.1.0
11-
scikit-image==0.18.3
12-
seaborn==0.12.0
13-
tifffile==2021.11.2
14-
wxpython==4.1.1
1+
setuptools==70.0.0
2+
numpy==1.26.4
3+
imagecodecs==2024.9.22
4+
# imagecodecs==2021.8.26
5+
magicgui==0.9.1
6+
# magicgui==0.5.1
7+
matplotlib==3.9.0
8+
# matplotlib==3.4.0
9+
openpyxl==3.1.5
10+
# openpyxl==3.0.9
11+
pandas==2.2.3
12+
# pandas==1.3.5
13+
pillow==10.3.0
14+
# Pillow==9.3.0
15+
PySide6==6.7.3
16+
# https://wiki.qt.io/Qt_for_Python
17+
# https://stackoverflow.com/questions/75707701/why-i-can-not-install-pyside2
18+
# pyside2==5.15.2.1
19+
# Unable to function in py3.12 with distutils removal/deprecation
20+
# pystackreg==0.2.7
21+
# pystackreg==0.2.7
22+
QtPy==2.4.1
23+
# qtpy==2.1.0
24+
scikit-image==0.23.2
25+
# scikit-image==0.18.3
26+
seaborn==0.13.2
27+
# seaborn==0.12.0
28+
tifffile==2024.5.22
29+
# tifffile==2021.11.2
30+
wxPython==4.2.2
31+
# wxpython==4.1.1
1532
xlrd==2.0.1
33+
# xlrd==2.0.1

0 commit comments

Comments
 (0)