Jump to content
Sign in to follow this  
limelect

DelphiFMX4Python

Recommended Posts

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 by limelect

Share this post


Link to post

@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 by limelect

Share this post


Link to post

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

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

@David Heffernan OK david you got me thinking

I did

Open Windows Powershell, and enter the following:

python --version

and found that

image.png.e420c8760b622e144835c08cb94267fc.png

 

Obviously, it is not good

So I will see either to delete or update

 

Share this post


Link to post

@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

image.png.0b4bd363b2b8fe814a0b01be9f3035cc.png

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 by limelect

Share this post


Link to post

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 by limelect

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×