limelect 48 Posted April 4, 2023 (edited) I was trying to install https://github.com/Embarcadero/DelphiFMX4Python/issues/74 It seems that I cannot be helped I used pip install delphifmx but I get a syntax error File "c:\users\limelect\appdata\local\temp\pip-build-b79gbo\delphifmx\setup.py", line 49 pyversionstrshort = f"{sys.version_info.major}{sys.version_info.minor}" ^ SyntaxError: invalid syntax Can anyone help? Edited April 4, 2023 by limelect Share this post Link to post
David Heffernan 2354 Posted April 4, 2023 What version of python? You'd get this error with Python 2. Share this post Link to post
limelect 48 Posted April 4, 2023 (edited) @David HeffernanPython36-32 window 7 Python 3.6.3 *Release date: 2017-10-03* Or what should it be? No place there is a version needed Edited April 4, 2023 by limelect Share this post Link to post
limelect 48 Posted April 4, 2023 from installation page Supports Win32 x86, Win64 x86, Linux64 x86, Android64, macOS64 and macM1 architectures Python cp3.6, cp3.7, cp3.8, cp3.9, cp3.10 and cp3.11 Share this post Link to post
David Heffernan 2354 Posted April 4, 2023 That doesn't sound quite right. I wonder if there is another Python somewhere in the system. The only thing in that line of code that looks like a syntax error is the f-string, but they are supported in 3.6. In fact they are new in 3.6 iirc. Share this post Link to post
limelect 48 Posted April 4, 2023 @David Heffernan OK david you got me thinking I did Open Windows Powershell, and enter the following: python --version and found that Obviously, it is not good So I will see either to delete or update Share this post Link to post
limelect 48 Posted April 4, 2023 (edited) @David Heffernan although now it is not a Delphi problem 1. I download ver 3.8 for window 7 2. But i keep getting ver 2.7 3, I searched the registry for the link to anaconda27 to change to 38 and could not find i looked at the environment and did not find where is the link to 27 or 2.7 I did use I Hope for the installation including conda activate This is my last problem so can someone help? Edited April 4, 2023 by limelect Share this post Link to post
programmerdelphi2k 237 Posted April 4, 2023 @limelect this help you? https://developer.hpe.com/blog/managing-multiple-instances-of-python-in-microsoft-windows/ Share this post Link to post
limelect 48 Posted April 4, 2023 (edited) @programmerdelphi2k I saw it already. I want only one instance of Python Edited April 4, 2023 by limelect Share this post Link to post
limelect 48 Posted April 6, 2023 (edited) First, thank you. Second, I am getting old. I missed 3 times the PATH variable where it is written where Anaconda (Python) is. And thanks again. Edited April 6, 2023 by limelect Share this post Link to post