You are not logged in.

#1 2025-07-01 20:08:37

jidderbug92
Member
Registered: 2025-07-01
Posts: 2

[SOLVED]Creating Python virtual environments

Hello all,

I am having an issue where I cannot create python virtual environments other than my system version of python (currently updated to 3.13). Following https://wiki.archlinux.org/title/Python … nvironment however I am in a bit of a loop where
- I try to create an env with a specific version of python,
- I error out with not being able to find said version
- searching on the web tells me to not to install more than one version and instead just use virtual environments to manage multiple python versions.

Steps I've taken
- my machine is up to date
- tried all methods of virtual envs listed in the link above
- I've also tried to download a version of python and point to a custom path and I am hit with a permission denied.
- attempted to change ower and permissions but still no luck getting custom path running
- tried taking an freshly made repo and env and tried to initialize with older version of python

Any help on getting this up and running would be greatly appreciated, thanks!

Last edited by jidderbug92 (2025-07-01 22:16:25)

Offline

#2 2025-07-01 21:54:50

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 711

Re: [SOLVED]Creating Python virtual environments

Following will create a venv (in .venv/) using python 3.10 and install cowsay, as an example:

$ uv venv -p 3.10
$ uv pip install cowsay
$ uv run cowsay # or .venv/bin/cowsay, or source .venv/bin/activate, then run cowsay, etc

Last edited by bulletmark (2025-07-01 21:57:39)

Offline

#3 2025-07-01 22:14:43

jidderbug92
Member
Registered: 2025-07-01
Posts: 2

Re: [SOLVED]Creating Python virtual environments

Sweet this worked thank you!

Offline

Board footer

Powered by FluxBB