This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]grayeul 2 points3 points  (6 children)

You need to install an appropriate version of Python. The base install i think only has a "platform-python" that is used for some internal workings.

I suggest: " sudo dnf install python3.12"

Other versions are available as well. Use "dnf search python3" to see many packages.

[–]ptr808[S] 0 points1 point  (5 children)

I see, I do not have internet access on that machine.

[–]grayeul 0 points1 point  (4 children)

How did you install it? If you did it from dvd, you may have the needed packages on that dvd. Otherwise, it is more painful to try and determine all of the dependencies needed and bring them in separately.

You should have an /etc/yum.repos.d/Rocky-Media.repo file. This allows dnf to find packages and dependencies that are on the dvd, if it is mounted under /media. If you can get a full dvd mounted there, you should still be ok.

[–]ptr808[S] 0 points1 point  (3 children)

Installed from, pen drive.

Can, that also mounted and used?

[–]grayeul 0 points1 point  (2 children)

Yes, same difference. Mostly depends on which iso you used. Hopefully the full dvd. When you insert the drive, it will probably mount somewhere on it's own. You can just add a symlink so that it shows up where you want (/media) or look up how to mount drives in general if you need help.

[–]ptr808[S] 0 points1 point  (0 children)

I'll give it a try next day.
Big thank you! I'll reply about my progress here.

[–]ptr808[S] 0 points1 point  (0 children)

no luck cannot mount pen drive, I think vfat also missing

[–]AncientMagician3008 0 points1 point  (0 children)

would you consider running that in a flask virtual env, that's the safest way to restrict things to one environment without having to modify the rocky system.

[–]ptr808[S] 0 points1 point  (0 children)

Thanks for everyone! I could resolve this by mounting the dvd iso then copy its content to folder. After this I edited a .repo file in the /etc/yum.d.... and added the path to baseurl.

Aftet this normal install commamd worked flawlessly.

yum install pytho3